Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for assertions #18

Closed
vbence opened this issue Feb 27, 2014 · 3 comments
Closed

Adding support for assertions #18

vbence opened this issue Feb 27, 2014 · 3 comments

Comments

@vbence
Copy link
Contributor

vbence commented Feb 27, 2014

It would be nice to handle inter-field validation with XML Scehma's assert mechanism.
http://www.w3.org/TR/xmlschema11-1/#cAssertions

As JAXB is a given, running XPath expressions on the marshalled representation should be straightforward.

@whummer
Copy link
Owner

whummer commented Feb 27, 2014

Sounds like a useful extension, will look into this...

@vbence
Copy link
Contributor Author

vbence commented Feb 27, 2014

As a first step it would be nice just to include this information in schema generation. Actual validation could even be a different milestone.

@whummer
Copy link
Owner

whummer commented Mar 2, 2014

Added support for assertions in version 1.2.0. Note that this currently only works if using JAXB directly, integration with JAX-WS (including wsimport) is not possible because XML Schema 1.1 features don't seem to be supported there.

To disable the feature you can set the XmlSchemaEnhancer.XSD_11_ENABLED flag to false.

Currently there is only a very limited set of test cases for this feature, please feel free to provide more tests for different corner cases.

@whummer whummer closed this as completed Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants