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 datamodel-code-generator doesn't support references to schemas with both minus (-) and dots (.) because file names are not sanitized. This lead to a crash because invalid python code is passed to black, which raises an exception.
Describe the bug
datamodel-code-generator
doesn't support references to schemas with both minus (-
) and dots (.
) because file names are not sanitized. This lead to a crash because invalid python code is passed to black, which raises an exception.This issue was (partially) fixed in:
May be related to:
It works for references without any dot (
.
)For more details & reproducible example: https://github.com/ilovelinux/datamodel-code-generator-issue-2336
To Reproduce
Example schema:
array-commons.schema.json
products.schema.json
Used commandline:
Expected behavior
It should generate working code.
Version:
Additional context
For more details & reproducible example: https://github.com/ilovelinux/datamodel-code-generator-issue-2336
The text was updated successfully, but these errors were encountered: