You could only use @NonNull... because @Valid only means that if it is a complex object, then its element should be checked too when they are annotated, so maybe you only need it not to be null?
Le mercredi 28 décembre 2016 00:48:30 UTC+1, Ali Akhtar a écrit : > If I have a parameter annotated with @Valid, and I send a request without > a body, that allows the request through and gives me an NPE. Whaaaaat. > > Is there a workaround annotation which combines @Valid and @NotNull and > doesnt require me having to declare both? > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
