You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gravitino.apache.org by "adwaithadwaith (via GitHub)" <gi...@apache.org> on 2026/02/18 07:15:09 UTC

[D] @Positive validation not working on query params in custom Gravitino REST APIs [gravitino]

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 dev@gravitino.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@gravitino.apache.org