datamodel-code-generator icon indicating copy to clipboard operation
datamodel-code-generator copied to clipboard

Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.

Results 379 datamodel-code-generator issues
Sort by recently updated
recently updated
newest added
trafficstars

### Discussed in https://github.com/koxudaxi/datamodel-code-generator/discussions/827 Originally posted by **azatoth** August 21, 2022 When I'm running the generator on https://ll.thespacedevs.com/2.2.0/schema (no option flags supplied to the binary), it will for the components...

### Description When running `datamodel-codegen --input example_schema.json --input-file-type jsonschema --output model.py` On my file it will not grab all the necessary fields. You'll notice in the Example Code, Field 1...

**Is your feature request related to a problem? Please describe.** Currently we generate individual classes even for same type in schema. for below example: **schema.graphql** ```graphql type Query { studentQuery(ids:...

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.5.9 to 9.5.10. Release notes Sourced from mkdocs-material's releases. mkdocs-material-9.5.10 Updated Bahasa Malaysia translations Fixed #6783: Hide continue reading link for blog posts without separators Fixed #6779:...

dependencies

updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.2.2)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.0 to 0.2.2. Release notes Sourced from ruff's releases. v0.2.2 Highlights include: Initial support formatting f-strings (in --preview). Support for overriding arbitrary configuration options via the CLI...

dependencies

Hello! I have spec which uses `ref`. I would like to have default value for referenced field to be generated automatically. The only default value I managed to get is...

**Describe the bug** In our open source project [reqstool](https://github.com/Luftfartsverket/reqstool-client) we have several JSON Schemas. We would like to use datamode-code-generator to generate pydantic v2 code, but the code does not...

enhancement
help wanted
answered

**Describe the bug** When `from typing import TypeAlias` is used in the output models, it does not take into consideration that support for this was introduced in python 3.10. Any...

bug
help wanted

**Describe the bug** A schema containing a NUL character `\u0000` becomes a literal (i.e. not escaped) NUL in the generated Python file. This is a SyntaxError. > SyntaxError: source code...

bug