@Positive validation not working on query params in custom Gravitino REST APIs #10015
Unanswered
adwaithadwaith
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add @positive validation to @QueryParam in a custom REST endpoint when extending Gravitino, but the validation is not working properly.
Simple example: @path("/custom") class with @get endpoint taking @QueryParam("limit") @positive Integer limit. When I hit ?limit=-1 or ?limit=0, the validation is not working properly.
I'm using javax.validation.constraints.Positive.
Beta Was this translation helpful? Give feedback.
All reactions