{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Testing","url":"https://skillfed.io/packages/category/education-testing"}],"enrichment":{"capability":"Generates random JSON data that conforms to a given JSON schema, for use as test input in property-based testing with Hypothesis.","skillfed_tags":["property-based-testing","json-schema","test-data-generation"],"use_cases":["Test REST API endpoints by generating valid JSON payloads that match your OpenAPI or JSON Schema specification.","Fuzz data validation logic by creating diverse inputs that conform to a schema but exercise edge cases.","Verify data transformation pipelines by generating schema-compliant input and checking output correctness.","Build schema-driven test suites where test data is derived automatically from your schema rather than hardcoded.","Validate custom format handlers by generating data with specific string formats (e.g., email, UUID, card numbers)."],"what_it_does":"hypothesis-jsonschema bridges Hypothesis (a property-based testing framework) and JSON Schema by converting a schema into a Hypothesis strategy that generates valid JSON data matching that schema. Rather than hand-writing test inputs, you define a schema and the package generates diverse, valid examples automatically\u2014useful for testing APIs, data pipelines, or any code that consumes JSON.\n\nThe package exposes a single public function, `from_schema()`, which takes a JSON schema and optional configuration (custom format handlers, encoding constraints) and returns a strategy for Hypothesis's `@given` decorator. It supports JSON Schema drafts 04, 05, and 07, handles non-recursive schema references, and allows you to customize how custom formats are generated. Dependencies are minimal: only hypothesis and jsonschema.","worth_installing":"Yes, if you use Hypothesis for property-based testing and need to generate JSON data. The package is stable, has no known vulnerabilities, and low install friction. The aging maintenance status (no release in 898 days) is a minor concern for new features but not a blocker for current use\u2014the API is small and the underlying dependencies are mature. Suitable for production test suites."},"id":"hypothesis-jsonschema","links":{"html":"https://skillfed.io/packages/hypothesis-jsonschema","md":"https://skillfed.io/packages/hypothesis-jsonschema.md","pypi":"https://pypi.org/project/hypothesis-jsonschema/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-02-28","license_spdx":null,"license_treatment":"copyleft","name":"hypothesis-jsonschema","python_support":"supports_current","summary":"Generate test data from JSON schemata with Hypothesis"},"popularity":{"monthly_downloads":3380433,"position":2645,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.23.1"}
