python-fastjsonschema
python-fastjsonschema copied to clipboard
Fast JSON schema validator for Python.
From the Python docs for [re.compile()](http://docs.python.org/library/re.html#re.compile): Note The compiled versions of the most recent patterns passed to re.match(), re.search() or re.compile() are cached, so programs that use only a few...
Hello, I am getting a weird error when trying to run validate. ``` data = ["str"] schema = {"minItems":1, "minLength": 1} fastjsonschema.validate(schema, data) ``` gives ``` Traceback (most recent call...
draft 07 date format RFC 3339 requires that the date-month and date-mday should be two digits. You can see the appropriate tests in the test suite at https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/6ce9bc4ce6d22d57fd1d9ebab2caae52bc495319/tests/draft7/optional/format/date.json#L186 Would it...
At the moment this code fails: ``` import fastjsonschema schema = { "type": "object", "properties": { "class_name": { "const": "some_class" }, "some_property": { "type": "number", "default": 1 } }, "required":...
Hi! I'm currently looking into packaging this project for Arch Linux. We usually rely on upstream's unit tests to figure out whether a given project is compatible with our Python...
Please provide an example of running the python scripts generated in README.md Thanks!
Is 2019-09 support planned? support for format (such as duration) should be minimal, and the use of $defs over definitions seems not to be strictly enforced. Thanks
I have a schema like this: ```json { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "orderValue": { "type": "number", "minimum": 0 }, "commission": { "type": "number", "minimum": 0 } } }...
AWS publishes JSON Schema documents for its events that include custom formats for non-string types. e.g. ``` "lastModifiedTime": { "format": "int64", "type": "integer" } ``` These custom formats generate parsing...
When I default to `numpy.nan`, i get a `NameError: name 'nan' is not defined`. Here is the full code ``` import fastjsonschema import numpy as np nnnan = np.nan print(nnnan)...