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

**Is your feature request related to a problem? Please describe.** I recently attempted to ingest a json schema containing patternProperties and they were completely ignored (generated model and silently left...

enhancement
released

**Describe the bug** A clear and concise description of what the bug is. This is a twin on https://github.com/psf/black/issues/1223. And I raise the question: is black really necessary for datamodel-code-generator?...

I'm attempting to use the library as a module, but having a difficult time figuring out the correct inputs for generate from the documentation. Command line usage is a no...

Hi, @koxudaxi , first of all thank you for you library - it's awesome. Second, I saw you comment in this PR https://github.com/koxudaxi/datamodel-code-generator/issues/40, you said you expected use DDL of...

Hi, we have encountered a problem when trying to generate code for nullable Enums. This bug is present since at least version 0.7.3. **Describe the bug** When generating code from...

bug
released

**Describe the bug** In the [usage section](https://github.com/koxudaxi/datamodel-code-generator#user-content-usage) it is stated that the default encoding is utf-8. However the comand line paramater has to be set explicitly in order to properly...

documentation

add documents include examples on each feature.

help wanted
good first issue
documentation

**Describe the bug** It produces a Enumeration with key with `None_` prepended and without quotes around the value ``` Traceback (most recent call last): File "/Users/tomhemmes/miniconda3/envs/py38/lib/python3.8/site-packages/datamodel_code_generator/__main__.py", line 244, in main...

Feedback Wanted

Hey @koxudaxi! Would you be interested to make this package available via the [conda-forge](https://conda-forge.org) anaconda channel? In case there is interest, I'd be happy to draft a PR for the...

I cannot generate the code for https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json ``` # "format": "unix-time", # -> # json_schema_data_formats[type_][format__], # KeyError: 'unix-time' ``` and ``` # not model.reference_classes - {model.name} - set(sorted_data_models) # RecursionError:...