resteasy's suggestion for validation is to use the @ValidateRequest annotation in your jax-rs resource:
@Path("resourcePath") @ValidateRequest public interface Resource { @POST @Path("insert") public String insert(@Valid FormBean form); }
But this one associates your code with a specific jax-rs implementation , which I would like to avoid. Is there a general way to use JSR 303 annotations to validate incoming data?
source share