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 <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2017-08-07 14:16 GMT+02:00 Mark Struberg <[email protected]>: > 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 course it should also > work for @Consumes > > Obviously this does _not_ work right now, simply because neither JSON-B > nor JAX-RS defines any Bean Validation integration, right? > > Now my question: where in the stack would it make the most sense to > integrate it? I assume in JSON-B, isn't? > > Any thoughts? > > LieGrue, > strub
