Skip to content

Rename setAdditionalProperties to avoid confusing naive introspectors #136

@ddossot

Description

@ddossot

As shown here, the code generated for additionalproperties is not compliant with the JavaBeans standard: the setter and getter types do not match, which causes other libraries that introspect the code generated by jsonschema2pojo to go haywire.

Could setAdditionalProperties(Map<String, Object>) be used instead? If this is not OK for @org.codehaus.jackson.annotate.JsonAnySetter maybe the annotation could be added to another method like setAdditionalProperty(String name, Object value)?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions