Hi,

I have the following resource where bean validation is not working.
What configuration is required to activate bean validation?


@Path("/product")
public class ProductApi {

    @GET
    public void demo(@NotNull @QueryParam("id") Integer id) {
      //do something with the id.
    }

}


The id is required. I expect a 4xx error when id is not passed.
Instead I am getting 204(no content).


Thanks.

Reply via email to