Tool to generate Python types (TypedDict, dataclasses) from JSON Schema definitions. Version 2.13.0, requires Python >=3.10. Active development.
pip install jsonschema-gentypesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse a JSON Schema and generate TypedDict Python code.
Use the Python API (SchemaParser, generate_types) instead of CLI.
Load your JSON file into a Python dict first, then pass to SchemaParser.parse().
Switch to TypedDict generation if needed, or pin to <3.0.
Ensure your schema is valid JSON Schema before passing to SchemaParser.
Always include a 'title' in your JSON Schema definitions.
No dependency data recorded yet.