koxudaxi/datamodel-code-generator
Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
PythonMIT
Pinned issues
Issues
- 1
Support NaiveDateTime
#1996 opened by pmbrull - 0
Invalid RootModel generated when using additionalProperties on reference schema
#2101 opened by joao-de-oliveira - 0
Invalid file format `yaml` in `--help`
#2099 opened by dsgibbons - 0
- 0
Expose ids into template context
#2098 opened by ZipFile - 1
option to remove `typename__` from graphql input?
#2095 opened by trim21 - 0
Enum defaults haves have broken import path prefix when using `dataclasses.dataclass`
#2094 opened by negz - 0
- 0
`default` value in OpenAPI 3.1 is missing when schema is referenced and the type is `["string", "null"]`
#2092 opened by chezou - 0
error due to field name matching enum name
#2091 opened by jgunstone - 0
Type annotation falls back to Any if property schema is partially overwridden
#2087 opened by simontaurus - 0
allOf with a single $ref with a local json-pointer is resolved in the importing schema
#2086 opened by simontaurus - 0
Using `const` inside `anyOf` combined with `minimum` and `maximum` not working
#2085 opened by andzno1 - 0
`FileNotFoundError` for `schemas/common-core/link.yaml`
#2080 opened by C-Loftus - 1
- 0
`SyntaxError: from __future__ imports must occur at the beginning of the file` when custom header is used
#2079 opened by Dezzley - 0
- 0
- 0
Too short timeout for fetching schema
#2073 opened by azatoth - 0
- 0
- 0
- 0
- 0
Union modes in Pydantic V2
#1989 opened by pmbrull - 0
(🎁) Use `ruff format` instead of `black` + `isort`
#2025 opened by KotlinIsland - 1
Model class names are missing the last letter in models generated from 2020-12 JSON schema specification
#2032 opened by BraedonLeonard - 0
Support `webhooks` in `--openapi-scope`
#2059 opened by stephanschielke - 0
- 0
Valid JSON Schema results in error due to `additionalProperties` set to `false`
#2057 opened by will-ockmore - 1
Add `model_config = ConfigDict(use_attribute_docstrings=True)` when the command option `--use-field-description` is used
#2049 opened by 9ao9ai9ar - 0
pyproject.toml detection fails in subdirectories when the file has no `[tool.black]` section since black 24.2
#2052 opened by meliache - 0
Relative paths in url '$ref's are added to local file path instead of the url.
#2051 opened by sondsorb - 0
- 0
[one|any|all]Of+required schema rules produce numerous near-identical models which are then quite hard to differentiate
#2048 opened by fiendish - 0
workaround: better class names
#2042 opened by straz - 0
[BUG]: All of the fields have a None default
#2040 opened by Paillat-dev - 1
Broken Import Statement: inheriting schemas named with "dot" notation (ie: `$ref: '#/components/schemas/v0.animal`)
#2039 opened by andreffs18 - 0
datamodel-codegen fails with OpenAI OpenAPI spec
#2037 opened by baggiponte - 1
When generating pydantic with jsonData, an error occurred: "Invalid file format"
#1993 opened by zhao004 - 0
Sometimes using serialization_alias would be better than using alias; this should be switchable
#2030 opened by GeorgeFischhof - 1
Remove linters from package dependency
#2010 opened by PythonFZ - 0
- 7
Add Swift codable structs support
#2022 opened by natikgadzhi - 0
- 0
Generate Annotated types instead of root types for string constraints
#2018 opened by RonnyPfannschmidt - 0
Models are not generated from OpenAPI 3.0.1
#2004 opened by ysemennikov - 0
- 0
- 0
- 0
New command line flag -add-v1-to-imports
#1986 opened by mattholden