-
Notifications
You must be signed in to change notification settings - Fork 58
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
Javax Validation Module: Validating Container Elements #60
Comments
Hi @TonyJulin, That is currently not supported as I didn't yet look into how to access these annotations programmatically. It should be possible according to this SO post. However, I cannot promise when I will get to it right now. |
Hi @TonyJulin, I've made some changes to allow these container item annotations to be picked up – in #61. I'm therefore not releasing this yet to first continue investigating what is necessary to access this kind of information through the However, all the information I've used now is already available and you could re-create what I'm doing in the linked PR purely through configurations. |
Thank you for quick response and follow-up post. Since this feature is only required on one field in one of our objects we're creating a schema for (so far) a small, hard-coded solution was sufficient. That being said, I'll take a look at the linked PR and will keep an eye on future versions in case it's added down the road. |
HI @TonyJulin, Release v4.9.0 has just been published, including the support for at least the first-level container item annotations as per your given example.
The change in the underlying |
Hello. Great project so far. However, I've been running into an issue trying to apply container element constraints using the Javax validation module. For instance, I want to do something like:
List<@Size(max=3) String> countryCodes
but I can't get the result to appear in the schema output. Is there a configuration I need to do? Is it already an included feature? Thanks!The text was updated successfully, but these errors were encountered: