Skip to content
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

refs #4799 - allow composed constraint annotations #4801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wudip
Copy link

@wudip wudip commented Dec 1, 2024

This PR changes the scan for validatiom constraint annotations. It scans the annotations recursively instead of simple scan of the processed class.

This allows the user to define a custom annotation (e.g. @FirstName or @AirportCode) which can be reused in the Java code instead of copy-pasting all annotations with constraints. It brings better readability, allows easier management of the constraints and reduces code duplication and potential for errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant