Generate test data from JSON schemata with Hypothesis
The public API consists of just one function:
which takes a JSON schema and returns a strategy for allowed JSON objects.
JSONSchema drafts 04, 05, and 07 are fully tested and working. As of version 0.11, this includes resolving non-recursive references!
For details on how to use this strategy in your tests, see the Hypothesis docs.
hypothesis-jsonschema requires Python 3.6 or later.
In general, 0.x versions will require very recent versions of all dependencies
because I don't want to deal with compatibility workarounds.
hypothesis-jsonschema may make backwards-incompatible changes at any time
before version 1.x - that's what semver means! - but I've kept the API surface
small enough that this should be avoidable. The main source of breaks will be
if or when schema that never really worked turn into explicit errors instead
of generating values that don't quite match.
You can sponsor me to get priority support, roadmap input, and prioritized feature development.
Patch notes can be found in
Security contact information
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size hypothesis_jsonschema-0.14.0-py3-none-any.whl (22.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size hypothesis-jsonschema-0.14.0.tar.gz (25.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for hypothesis_jsonschema-0.14.0-py3-none-any.whl
Hashes for hypothesis-jsonschema-0.14.0.tar.gz