Skip to content

Add support for the @Range constraint validation annotation#3239

Open
Mattias-Sehlstedt wants to merge 1 commit intospringdoc:mainfrom
Mattias-Sehlstedt:range-validation-annotation
Open

Add support for the @Range constraint validation annotation#3239
Mattias-Sehlstedt wants to merge 1 commit intospringdoc:mainfrom
Mattias-Sehlstedt:range-validation-annotation

Conversation

@Mattias-Sehlstedt
Copy link
Contributor

Adds support for the hibernate @Range validation annotation.

Since @Range is a composed annotation of @Min and @Max, it caused issues that all annotations are processed (@Range was processed before @Min and @Max, and thus the default values of @Min and @Max overrode the @Range values), so to handle it a loop that looks for composed annotations and their composing annotations has been added. Any composed annotation will have its composing annotations dropped from the annotation list.

@Mattias-Sehlstedt Mattias-Sehlstedt force-pushed the range-validation-annotation branch from 006d147 to d4e3db7 Compare March 3, 2026 20:02
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