rackspace/repose — pull request #427 by RackerWilliams (2012-07-28 20:52:09+00:00)
Title: Validation fixes

Using the validator with Saxon was causing a number of issues. This patch updates Repose to the latest snapshot version of the checker-core. The two issues were that

1. Setting system properties in order to associate the Saxon XSD validator with repose is not working. Perhaps this is a problem with the ClassLoader? Things work well when using a validator filter directly with Jetty. The work around here is to not use system properties and instead create a schema factory directly.

2. wadl-tools (which is used be the checker-core) was bringing in an older version of the saxon library which was conflicting with the version of saxon that was used by the checker core -- our class loader was getting the libs mixed up and this caused problems. This *may* or *may not* be a bug, I'll discuss with Hopper.

Along the way of testing, I found a number of bugs that I'm including with this patch:

1. There's a missspelling in the validator XSD
2. The example Validator config did not validate against the schema
3. There's a slight bug in the response-messaging xsd -- the href attribute is marked as a required attribute, when it in fact is optional.