Open ben-manes opened 5 years ago
Hello, the best way to validate a schema is validating it against its meta-schema (so you get a ValidationException
instead of a SchemaException
).
I agree that is the correct first pass. However that does not resolve characteristics like missing definitions. A full resolution of the schema is required when ensuring correctness.
Similar to #272, but for schema validation. The improved detail helps when schemas are dynamically defined by the application.
An example from the older library,
whereas this library produces,
Similarly for a missing definition,
The json output requires more work to translate into an application error. Ideally the details would be broken down enough that translation would be straightforward.