-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CRDGenerator: Add support for Meta-Annotations/Combined-Annotations #5823
Comments
cc @andreaTP |
Thanks for bringing this up @baloo42 ! As mentioned on the related issue:
I'm supportive of this but we need a little design phase before starting to crunch code. |
I agree, this topic requires much more details before we start to get an overview if it's really worth the efforts. Some notes:
|
Is your enhancement related to a problem? Please describe
At the moment the CRDGenerator does not support Meta-Annotations / Combined-Annotations.
Describe the solution you'd like
A user of the CRDGenerator should be able to combine the existing CRDGenerator annotations in own annotations.
The CRDGenerator must detect those indirect usages and must generate the CRDs in the same way as it would if the CRDGenerator annotations are used directly.
Describe alternatives you've considered
No response
Additional context
An overview what Meta-Annotations/Combined-Annotions are can be found here:
https://dzone.com/articles/what-are-meta-annotations-in-java
Some other frameworks support such kind of a feature, too:
Spring:
https://docs.spring.io/spring-framework/reference/core/beans/classpath-scanning.html#beans-meta-annotations
Jakarta Bean Validation:
https://jakarta.ee/specifications/bean-validation/3.0/jakarta-bean-validation-spec-3.0.html#constraintsdefinitionimplementation-multipleconstraints
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-constraint-composition
https://www.baeldung.com/java-bean-validation-constraint-composition
The text was updated successfully, but these errors were encountered: