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


Download files

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

Source Distribution

hypothesis-jsonschema-unfit-0.1.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page