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
[crd-gen] Support openAPIV3Schema fields: minimum, maximum, pattern, nullable #4224
Comments
Is the pattern in your model example correct? The |
@OneCricketeer Yes you are right but is not important the regex value now...The problem here is that crd-gen not have the featuare to read |
@andreaTP could you have a look at this issue? |
I'm about to go on vacation, but if no one picks it up earlier I might eventually take a look at this. |
Relates to: |
I have to admit that I'm a little lost on the subtleties of |
Closed in #4348 |
Is your enhancement related to a problem? Please describe
(duplicate of #2959)
At the moment there is no way to auto generate a crd (with crd-gen tool) that contains properties with validation fields like minimum, maximum, pattern, nullable.
CRD example:
Describe the solution you'd like
I'd like to use javax annotation (like
@min @max @pattern
) on a java model fields.Currently @NotNull annotation generate the filed "required" on crd, but for "nullable" validation maybe we need of a new specific annotation.
Describe alternatives you've considered
No response
Additional context
version: 5.12.2
The text was updated successfully, but these errors were encountered: