GitHub user adwaithadwaith created a discussion: @Positive validation not 
working on query params in custom Gravitino REST APIs

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.

GitHub link: https://github.com/apache/gravitino/discussions/10015

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to