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

[jira] [Commented] (OWB-1208) Unable to use Unmanaged with mixed CDI 2.0/1.1 bean archives

2017-08-07 Thread John D. Ament (JIRA)
[ https://issues.apache.org/jira/browse/OWB-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16116393#comment-16116393 ] John D. Ament commented on OWB-1208: The CXFCdiServlet is just an example. I actually had been using