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 for JSR-303 validation annotations #18

Closed
joelittlejohn opened this issue Jun 23, 2013 · 4 comments
Closed

Support for JSR-303 validation annotations #18

joelittlejohn opened this issue Jun 23, 2013 · 4 comments

Comments

@joelittlejohn
Copy link
Owner

Original author: [email protected] (February 23, 2011 12:31:19)

Many of the non-structural JSON Schema rules (e.g. minimum/maximum, pattern, minItems/maxItems, etc) can be usefully represented using the JSR-303 annotations.

This should be optional, there needs to be a behavioural property to control this and it should probably be off by default.

Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=18

@joelittlejohn
Copy link
Owner Author

From [email protected] on February 15, 2012 13:25:53
Has there been any progress on adding this feature?

@joelittlejohn
Copy link
Owner Author

From [email protected] on February 20, 2012 17:40:51
Hi Warren. There hasn't been any progress at all on this. Is it something you'd find useful?

It was just an idea when I opened this ticket. I'm interested to know more about your use-case and what kind of implementation you'd like to see. Is there a specific set of json-schema properties you use that you'd like to result in JSR-303 annotations?

@joelittlejohn
Copy link
Owner Author

From [email protected] on July 30, 2012 18:43:12
Proposal for this change:

json schema jsr-303

maximum @DecimalMax
minimum @DecimalMin
minItems,maxItems @SiZe
pattern @pattern
required @NotNull

@joelittlejohn
Copy link
Owner Author

From [email protected] on August 08, 2012 21:22:22
Fixed r6a1a14106d82.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant