jschon
jschon copied to clipboard
An object-oriented JSON Schema implementation for Python.
As a library user, it would be helpful if jschon can provide numeric error codes( and name if possible) in addition to the error messages in output format since we...
I am having a use case where I have a large number of schemas in a oneOf/anyOf schema. In such a case it would be easier if I could use...
Hi, Would it be possible to modify the error message in the case of enum type? In case of a value not in the list of allowed possibilities, I would...
As the [JSON-Schema spec](http://json-schema.org/understanding-json-schema/reference/string.html#format) states, `"format"` is just annotation by default. Implementations may offer to treat it as a validation keyword. This luckily is also possible in jschon via `Catalog.add_format_validators`....
As per the [spec](https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.4.3.1).
The current relative JSON pointer implementation is based on an outdated draft. See https://datatracker.ietf.org/doc/html/draft-bhutton-relative-json-pointer-00 for the updated syntax.
If you have a schema where you have the following ```json { "$dynamicAnchor": "some_anchor", "type": "object", "properties": { "first": { "type": "not a valid type" } } } ``` This...
Hi, I was working on removing property values from a json for a given `JsonPointer` using [jsonpatch.remove](https://github.com/marksparkza/jschon/blob/main/jschon/jsonpatch.py#L250) from main branch / [jsonpatch.apply_remove](https://github.com/marksparkza/jschon/blob/v0.9.0/jschon/jsonpatch.py#L245) from v9.0 ```python example_json = { "foo": variable...
Related issues: #36, #37
Implements part of https://github.com/marksparkza/jschon/discussions/108#discussioncomment-6471856 This adds a generic document_root cached property to the JSON class, which can be distinct from both the document_schemaroot and resource_schemaroot of the JSONSchema class. This...