You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Extra, invalid line generated with Pydantic.
This line doesn't do anything useful and even after trying several codegen versions and flags variations, I was unable to get an output that doesn't have it and doesn't break the Python interpreter. The line:
importMapStateItem1asMapStateItem1_1
The error:
ModuleNotFoundError: No module named 'MapStateItem1'
Describe the bug
Extra, invalid line generated with Pydantic.
This line doesn't do anything useful and even after trying several codegen versions and flags variations, I was unable to get an output that doesn't have it and doesn't break the Python interpreter. The line:
The error:
ModuleNotFoundError: No module named 'MapStateItem1'
To Reproduce
JSON schema:
Used commandline:
$ datamodel-codegen --disable-timestamp --input-file-type jsonschema --output-model-type pydantic.BaseModel --snake-case-field --custom-file-header "# type: ignore" --use-double-quotes --reuse-model
Expected behavior
For generated model to work properly without any extra lines that break Python interpreter.
Version:
The text was updated successfully, but these errors were encountered: