-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 additionalProperties from json schema #5
Comments
From matthew....@gmail.com on December 22, 2010 16:47:27 would make {"XXX":"something", valid, and I would expect the Java API to be like: example.getAdditionalProperty("another property") returns "something else" or example.getAdditionalProperties() returns Map<String, Object> |
From matthew....@gmail.com on December 22, 2010 17:36:57 |
From joelittl...@gmail.com on December 22, 2010 19:07:47 The details are: @JsonAnySetter @JsonAnyGetter The spec is a little hard to understand but I believe "additionalProperties":true is invalid. The default for additionalProperties is an empty schema (any additional props allowed), if additionalProperties is present it must be either So "additionalProperties":true should actually be written as "additionalProperties":{} or, alternatively, by not specifying the additionalProperties property at all. |
From joelittl...@gmail.com on December 22, 2010 20:43:36 |
From joelittl...@gmail.com on December 23, 2010 00:06:52 |
…m-media-type Use custom type for media fields.
Original author: matthew....@gmail.com (December 22, 2010 16:42:22)
In case we don't know in advance what all the properties will be, we would still like to be able to marshall and unmarshall into Java easily.
Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=5
The text was updated successfully, but these errors were encountered: