Validation is not working on nested REST endpoints #40550
Labels
area/hibernate-validator
Hibernate Validator
kind/bug
Something isn't working
triage/invalid
This doesn't seem right
Describe the bug
I have the following REST service with a nested endpoint. Validation does not work on the nested end point.
Expected behavior
When I call "/api/test/validator/nested/42/annotatedbean" without providing "mandatoryString" parameter, I expect a HTTP 400 (bad request) response. A jakarta.validation.ConstraintViolationException thrown in the background , so I could map that exception too.
Actual behavior
Instead, I get HTTP 200 (OK)
How to Reproduce?
nested-rest-validation-issue.zip
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "17.0.9" 2023-10-17
Quarkus version or git rev
3.10.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6
Additional information
No response
The text was updated successfully, but these errors were encountered: