{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"}],"enrichment":{"capability":"Automatically generates Pydantic v2 models from JSON Schema definitions, handling references, combiners, validations, and format constraints.","skillfed_tags":["schema-generation","openapi","data-validation"],"use_cases":["Convert OpenAPI/Swagger specs to Pydantic models for API client or server validation","Automatically generate data models from JSON Schema files in data pipelines","Build form validators from schema definitions without manual model coding","Validate incoming JSON payloads against a schema-derived Pydantic model","Integrate schema-driven APIs with Python codebases that use Pydantic for type safety"],"what_it_does":"json-schema-to-pydantic bridges JSON Schema and Pydantic by generating type-safe Pydantic v2 models directly from schema definitions. It handles the complexity of schema features\u2014$ref resolution with circular reference detection, combiners like allOf/anyOf/oneOf, format validations (email, uri, uuid, date-time), and edge cases like underscore-prefixed fields common in OpenAPI specs\u2014so you don't have to write model classes by hand.\n\nThe library exposes a simple `create_model()` function for straightforward cases and a lower-level `PydanticModelBuilder` for advanced scenarios where you need to inject predefined models or type aliases. It supports relaxed validation modes for schemas that omit type information, and it generates models with full type hints. The package requires Python 3.9+ and depends only on pydantic.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem\u2014eliminating boilerplate when you already have a JSON Schema. It's especially valuable if you work with OpenAPI specs or schema-heavy APIs. The MIT license is permissive. The single dependency on pydantic is a strength, not a weakness, since pydantic is ubiquitous."},"id":"json-schema-to-pydantic","links":{"html":"https://skillfed.io/packages/json-schema-to-pydantic","md":"https://skillfed.io/packages/json-schema-to-pydantic.md","pypi":"https://pypi.org/project/json-schema-to-pydantic/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-09","license_spdx":"MIT","license_treatment":"permissive","name":"json-schema-to-pydantic","python_support":"supports_current","summary":"A Python library for automatically generating Pydantic v2 models from JSON Schema definitions"},"popularity":{"monthly_downloads":2105875,"position":3293,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.11"}
