[ 
https://issues.apache.org/jira/browse/CXF-5648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-5648.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
         Assignee: Sergey Beryozkin

org.apache.cxf.annotations.SchemaValidation has a new 'schemas' array property.

> Setup jax-rs Schema validation using annotations
> ------------------------------------------------
>
>                 Key: CXF-5648
>                 URL: https://issues.apache.org/jira/browse/CXF-5648
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.0-milestone2
>            Reporter: Vjacheslav Borisov
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Currently not possible to setup request schema validation using annotations. 
> This  could be usable in non-spring environment
> Currently this is possible using spring 
> http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-Schemavalidation
> And without spring it lacks context
> http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAX-RSservicesincontainerwithoutSpring
>  <!-- enables schema validation -->
>  <init-param>
>   <param-name>jaxrs.schemaLocations</param-name>
>   <param-value>
>     classpath:/WEB-INF/schemas/schema1.xsd
>     classpath:/WEB-INF/schemas/schema2.xsd           
>   </param-value>
>  </init-param>
> To enable contextual schema validation *without spring*
> can be introduced @XSDValidate annotation (or @XSISchemaLocation could be 
> extended to enable request and/or response validation)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to