-
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
Usage of maxProperties
not possible
#1665
Comments
Hi
Statements above are contradicting each other.
Not sure what |
I see that you have overridden this value to be |
I'm guessing that maxItems is ignored by most schema validators if the property is not an array, so it acts as a workaround to make the |
The |
Hello,
I tried to generate pojo using the
maxProperties
field on an object of type object, but it seems not handled at all in jsonschema2pojo plugin.As a workaround we could use
maxItem
instead.The problem with this solution is the fact that maxItem should be applied on Array while maxProperties is dedicated to objects.
So the json we declare is wrong.
Do you plan to add the
maxProperties
behavior in the plugin?In case you need my schema is:
The text was updated successfully, but these errors were encountered: