Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support handling of "unwrapped" POJOs #20

Closed
cowtowncoder opened this issue Sep 20, 2013 · 1 comment
Closed

Support handling of "unwrapped" POJOs #20

cowtowncoder opened this issue Sep 20, 2013 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

(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"}}}

ciderale added a commit to ciderale/jackson-module-jsonSchema that referenced this issue Feb 16, 2015
- improve tests, the actual fix is in jackson-databind (#271)
cowtowncoder added a commit that referenced this issue Feb 17, 2015
support json schema generation for @JsonUnwrapped (#20)
cowtowncoder added a commit that referenced this issue Feb 17, 2015
@cowtowncoder
Copy link
Member Author

Ok: should all be fixed now, as per #61, thanks to @ciderale. Will be in 2.5.2 (and, if it gets released, 2.4.6).

@cowtowncoder cowtowncoder added this to the 2.2.3 milestone Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant