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.
> :warning: I'm willing to work on this change myself. But before starting, I'd like to discuss it. **Is your feature request related to a problem? Please describe.** Here's a...
API Client
I really like the idea behind this -- jinja is a lot easier to work with than openapi-generator templates and the java-based generators. Would you have any interest in incorporating...
**Is your feature request related to a problem? Please describe.** I'm always frustrated when I have to install new dependencies when the feature is already in the standard lib. Pydantic...
**Is your feature request related to a problem? Please describe.** I have defined endpoint one per one file (yaml). In common I have some parameter which is used in almost...
**Is your feature request related to a problem? Please describe.** My problem is that for first level data structures I would like to define additional properties defined in base class...
**Is your feature request related to a problem? Please describe.** The problem is that when I want to serialize int/str enum that is child of enum.Enum i got this error...
**Is your feature request related to a problem? Please describe.** Currently I'm trying to workaround some problem described before, so I created some really strange template with imports but generator...
I'd like to be able to limit the number of CI failures by running codegen as a [pre-commit](https://pre-commit.com/) hook. I'm thinking something similar to [this](https://github.com/tj-pre-commit/graphql-codegen-hook)
**Describe the bug** open-rpc provides meta-schema in following locations: https://github.com/open-rpc/meta-schema/ and https://meta.open-rpc.org/ Now in order to parse files based on this meta-schema one would like to generate data model for...
**Describe the bug** In docker-compose json schema there are options like: ``` "shm_size": {"type": ["number", "string"]}, ``` which transforms into code like: ``` shm_size: Optional[Union[float, str]] = None ``` And...