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 <strub...@yahoo.de.invalid>
wrote:

> 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

Reply via email to