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

**Is your feature request related to a problem? Please describe.** I love that this codegen tool exists! We currently rely on models generated with this library, but we need to...

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4. Release notes Sourced from jinja2's releases. 3.1.4 This is the Jinja 3.1.4 security release, which fixes security issues and bugs but does not otherwise...

dependencies

Added an option to set the `from_attributes` in `PydanticV2` models through the `--extra-template-data`. This lets you automatically add `ConfigDict` with `from_attributes` to your templates, making it easier to create models...

## Problem We're using `datamodel-code-generator` for our Python code at @airbytehq, and I was about to make a little experimental app with Swift on our protocol, and realized there is...

enhancement

## What This pull request fixes a broken link to Airbyte's use case, and clarifies how we use datamodel-code-generators as well. ## How `README.md` change. ## User Impact None, should...

Currently the config and args don't combine if they are sequences or dictionaries. This serves to fix that

Would it be possible to move the code formatting tools to a dedicated poetry group such as `[tool.poetry.group.dev.dependencies]` or are they required for the package to work? https://github.com/koxudaxi/datamodel-code-generator/blob/28be37d7c2a0b0bce21b0719ffb732df36ebce74/pyproject.toml#L54-L55

answered

The `processed_models` array stores `Processed` objects, which include models and their imports after being handled by the `parser/base.py:parse` function. However, since `models` are objects (passed by reference), the `Processed` objects...