datamodel-code-generator
datamodel-code-generator
Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL, Avro, Protobuf, and raw JSON/YAML/CSV, plus FastAPI servers and Python clients from OpenAPI.
Recommended issues
Issues stay on GitHub. Read the thread before starting work.
Topics
openapicode-generatorpythonpydanticgeneratorfastapijson-schemadatamodelswaggeryamlcsvopenapi-codegenswagger-codegendataclassgraphqlmsgspectypeddictagent-skills