swagger-core
swagger-core copied to clipboard
refs #4799 - allow composed constraint annotations
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.