datamodel-code-generator
datamodel-code-generator copied to clipboard
Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
**Is your feature request related to a problem? Please describe.** No / depends on **Describe the solution you'd like** create a switch to use serialization_alias instead of alias **Describe alternatives...
**Is your feature request related to a problem? Please describe.** Python 3.11 has introduced some breaking changes for enums when used in f-strings. ``` class MyEnum(str, Enum): VALUE = "value"...
Hi thanks for the library! It would be great it a user-defined prefix could be added to all generated classes, because my downstream code generators rely on the class name...
**Describe the bug** ``` class Timeout(RootModel[int]): root: int = Field(examples=[3600], gt=0, le=14400, title='Timeout') """ Timeout for the crawler run in seconds """ class CrawlConfiguration(BaseModel): timeout: Timeout | None = Field(default=3600,...
Adds msgspec support for datetime output with `--output-datetime-class datetime` addresses #2078
Bumps [ruff-lsp](https://github.com/astral-sh/ruff-lsp) from 0.0.40 to 0.0.58. Release notes Sourced from ruff-lsp's releases. v0.0.58 What's Changed fix: change url from lspconfig doc by @azmovi in astral-sh/ruff-lsp#501 Bump pinned version of Ruff...
Bumps [openapi-spec-validator](https://github.com/python-openapi/openapi-spec-validator) from 0.6.0 to 0.7.1. Release notes Sourced from openapi-spec-validator's releases. 0.7.1 Features Versions submodule #291 Move to jsonschema-path package #292 Validator accepts any schema (schema dictionary or SchemaPath)...
Bumps [inflect](https://github.com/jaraco/inflect) from 5.6.2 to 7.4.0. Changelog Sourced from inflect's changelog. v7.4.0 Features Handle a single apostrophe more gracefully. (#218) v7.3.1 Bugfixes Set minimum version of more-itertools to 8.5 (#215)...
Bumps [types-setuptools](https://github.com/python/typeshed) from 69.5.0.20240522 to 75.2.0.20241018. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [mypy](https://github.com/python/mypy) from 1.4.1 to 1.12.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next release Mypy 1.12 We’ve just uploaded mypy 1.12 to the Python Package Index (PyPI). Mypy...