Skip to content

Support handling of "unwrapped" POJOs #20

@cowtowncoder

Description

@cowtowncoder

(note: copied from FasterXML/jackson-databind#271)


For example :

class A { public String text = "text"; }
class B { public @JsonUnwrapped A a = new A(); }

would serialize as :

{"text":"text"}

and the schema would be :

{"type":"object","properties":{"a":{"type":"object","properties":{"text":{"type":"string"}}}}}

but, this is not consistent with the serialized form, the schema should be this :

{"type":"object","properties":{"text":{"type":"string"}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions