swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

refs #4799 - allow composed constraint annotations

Open wudip opened this issue 10 months ago • 0 comments

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.

wudip avatar Dec 01 '24 15:12 wudip