Check JAX RS Jersey Schema

How to configure schema validation for JAX-RS RESTFul services?

We use XSD to define models, and JAXB to create Java models.

+3
source share
1 answer

Here's how to do it automatically in ReXSL : XslResolver # addXsdValidatorToMarshaller () (note the highlighted method). In a nutshell you need to use setSchema()your JAXB Marshaller.

-1
source

Source: https://habr.com/ru/post/1768527/


All Articles