[java-gen] - Generated Java model should include new specific annotations (min, max, etc.)
See original GitHub issueIs 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:
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
how can @Max @Min @Valid works? in java - Stack Overflow
I made @GetMapping annotation for studying purposes (with out using implements ConstraintValidator) and was easy. but how I can make @Max ...
Read more >21.1 Using Bean Validation Constraints
The Bean Validation model is supported by constraints in the form of annotations ... Use one of the optional max or min elements...
Read more >15.2. Validation Annotations — Java Web Development ...
Within the model of a Java web application, we can define validation rules using annotations from the javax.validation.constraints package.
Read more >Chapter 6. Creating custom constraints - Red Hat on GitHub
To create a custom constraint, the following three steps are required: Create a constraint annotation. Implement a validator. Define a default error message ......
Read more >Difference Between @Size, @Length, and @Column - Baeldung
@Size and @Length are similar. We can use either annotation to validate the size of a field. The former is a Java-standard annotation,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @bachmanity1 , sorry for the confusion and trouble,
fabric8
6.2.0
is out now and since we don’t have it properly “versioned” I encourage you to browse the docs using the appropriatetag
e.g.: https://github.com/fabric8io/kubernetes-client/tree/v6.2.0/docThis is part of the 6.2.0 milestone, it will be available once we cut this release.