Skip to main content

No project description provided

Project description

An experimental project for the generation of JSON data that does NOT match the given JSON schema.

from hypothesis import given
from hypothesis_jsonschema_unfit import not_from_schema

SCHEMA = {
    "items": {
        "type": "object",
        "required": ["key1", "key2"],
        "properties": {"key1": {"type": "string"}, "key2": {"type": "integer"}},
    },
    "type": "array",
    "minItems": 4,
}

@given(not_from_schema(SCHEMA))
def test(instance):
    ...

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hypothesis-jsonschema-unfit, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size hypothesis_jsonschema_unfit-0.1.0-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size hypothesis-jsonschema-unfit-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page