Re: Bean Validation for Meecrowave JSON-B/JAX-RS

2017-08-07 Thread John D. Ament
JAX-RS Defines Bean Val integration, if you add @Valid to resource methods (params and return value) they should get validated on the way in or the way out. On Mon, Aug 7, 2017 at 8:16 AM Mark Struberg wrote: > Hi! > > Not sure whether I should post this in Johnzon,

Re: Bean Validation for Meecrowave JSON-B/JAX-RS

2017-08-07 Thread Romain Manni-Bucau
Hi Mark, it should work just adding a bval impl (see https://github.com/apache/meecrowave/blob/trunk/integration-tests/beanvalidation/src/main/java/org/apache/meecrowave/beanvalidation/itest/Service.java) since it is object based Romain Manni-Bucau @rmannibucau

Bean Validation for Meecrowave JSON-B/JAX-RS

2017-08-07 Thread Mark Struberg
Hi! Not sure whether I should post this in Johnzon, CXF or here. My colleagues have the following question: They would like to have an e.g. @NotNull field in a data structure which gets serialised as @Produces(MediaType.APPLICATION_JSON) Means JAX-RS uses JSON-B for serialisation. Ond of