cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vjacheslav Borisov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5648) Setup jax-rs Schema validation using annotations
Date Wed, 26 Mar 2014 08:31:15 GMT
Vjacheslav Borisov created CXF-5648:
---------------------------------------

             Summary: 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
            Priority: Minor


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)

Mime
View raw message