Datamodel-code-generator: json schema: minus in name results in invalid python module name

Created on 31 May 2020  路  3Comments  路  Source: koxudaxi/datamodel-code-generator

Describe the bug
having a - inside a definition's name results in an invalid python module name.

Expected behavior

Replace - in names with _.

bug

Most helpful comment

@koxudaxi thanks! works as expected.

All 3 comments

@FlorianLudwig
Thank you for creating an issue.

I will fix a bug.

@FlorianLudwig
I have released a fixed version as 0.5.0
The version converts a module name including - to the snake case name.
Would you please check the version?

@koxudaxi thanks! works as expected.

Was this page helpful?
0 / 5 - 0 ratings