{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"Generates Python TypedDict type annotations automatically from JSON Schema definitions, enabling static type checking of JSON data structures through mypy.","skillfed_tags":["type-checking","json-schema","mypy-plugin"],"use_cases":["Validate API request/response payloads against a JSON Schema while getting IDE autocomplete and type errors during development.","Ensure configuration files loaded from JSON match an expected schema without writing manual TypedDict classes.","Catch typos in JSON object keys and type mismatches in data pipelines before runtime.","Generate type stubs for dynamically loaded JSON data in data processing or ETL workflows.","Enforce schema compliance in test fixtures and mock data without duplicating type definitions."],"what_it_does":"jsonschema-typed-v2 bridges JSON Schema and Python's type system by converting JSON Schema definitions into TypedDict annotations that mypy can understand. When you annotate a variable with JSONSchema[\"path/to/schema.json\"], the package's mypy plugin intercepts the type and generates a TypedDict matching the schema's structure\u2014translating JSON types (string, number, boolean, array, object) into Python equivalents and marking required vs. optional fields. This lets you catch type errors in JSON-shaped data at static-check time rather than runtime.\n\nThe package is a maintained fork of an earlier abandoned project. It depends on jsonschema for schema parsing and mypy for the plugin infrastructure. Most JSON Schema concepts map straightforwardly to Python types, though some (like additionalProperties and self-references) have known limitations. Configuration requires enabling the plugin in mypy.ini and disabling mypy's cache due to how type hints are generated.","worth_installing":"Yes, if you actively use JSON Schema and want static type checking without manually writing TypedDict classes. The low install friction and permissive license make adoption easy. However, maintenance is dormant (last release 2020-08-11), and the package depends on mypy's unstable plugin API\u2014newer mypy versions may break it without warning. Suitable for stable projects where you control mypy versions; risky for codebases that auto-upgrade dependencies."},"id":"jsonschema-typed-v2","links":{"html":"https://skillfed.io/packages/jsonschema-typed-v2","md":"https://skillfed.io/packages/jsonschema-typed-v2.md","pypi":"https://pypi.org/project/jsonschema-typed-v2/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-08-11","license_spdx":null,"license_treatment":"permissive","name":"jsonschema-typed-v2","python_support":"supports_current","summary":"Automatic type annotations from JSON schemas"},"popularity":{"monthly_downloads":172461,"position":10337,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.0"}
