question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[java-gen] - Generated Java model should include new specific annotations (min, max, etc.)

See original GitHub issue

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:

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andreaTPcommented, Oct 20, 2022

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 appropriate tag e.g.: https://github.com/fabric8io/kubernetes-client/tree/v6.2.0/doc

1reaction
manusacommented, Oct 7, 2022

This is part of the 6.2.0 milestone, it will be available once we cut this release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found