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
[java-gen] - Generated Java model should include new specific annotations (min, max, etc.) #4384
Comments
Those new annotations look great ! |
@derlin which version are you using? |
@andreaTP I am using 5.13.3 and tried the latest version (5.13.4). Maybe this is where I am confused, then. Could you explain the difference between the 5.x and 6.x tracks ? Edit: just tried importing the crd-generator-api and crd-generator-apt version 6.1.1, still unable to import. |
I actually cannot find Regarding the difference you can read more here: https://developers.redhat.com/articles/2022/07/15/new-http-clients-java-generator-and-more-fabric8-600 |
This is part of the 6.2.0 milestone, it will be available once we cut this release. |
This is actually a little confusing because documentation has already been updated but release is not out yet. I've spent last couple of hours figuring out why imports related to this feature are not working in my project only to realize that this feature is not available yet. |
Hi @bachmanity1 , sorry for the confusion and trouble, |
Is your enhancement related to a problem? Please describe
Support for specific annotations (e.g.:
@Max
,@Min
,@Pattern
, etc.), was added recently but the Java generator doesn't generate any of such annotations.Describe the solution you'd like
The Java generator should take the related keywords into account when they appear in CRDs (e.g.:
maximum
,minimum
,pattern
, etc.), and generate the corresponding annotations for them to appear in the Java model.Describe alternatives you've considered
N/A
Additional context
See:
The text was updated successfully, but these errors were encountered: