Open
Description
The standard draft 2020-12 defines four standard output formats: https://json-schema.org/draft/2020-12/json-schema-core.html#name-output-formatting
- Flag - A boolean which simply indicates the overall validation result with no further details.
- Basic - Provides validation information in a flat list structure.
- Detailed - Provides validation information in a condensed hierarchical structure based on the structure of the schema.
- Verbose - Provides validation information in an uncondensed hierarchical structure that matches the exact structure of the schema.
jsonschema
should provide ways to emit them and integrate them with its error structure:
- there should be a
Validator
method with aformat
keyword argument that just emits a Python dict conforming to the chosen format - the ValidationErrors emitted by
iter_errors
should match the errors in theBasic
format - the ErrorTree structure should match the
Detailed
/Verbose
format