You can create new annotation combinening any other checks (in your case notnull and valid): https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-constraint-composition
среда, 28 декабря 2016 г., 6:48:30 UTC+7 пользователь Ali Akhtar написал: > > 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.
