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
{{ message }}
Repository navigation
Types named datetime cause conflict with Python's datetime #557
Describe the bug
I am creating an OAS3 file from an existing API and one of the schemas includes a property named datetime which causes an Attribute exception when the generated model is imported.
To Reproduce
Steps to reproduce the behavior:
Convert a OAS3 file that contains a property named datatime:
Conversion succeeds with no errors or warnings
When executing generated code that has the offending model imported, an AttributeError will be thrown with message:
'Unset' object has no attribute 'datetime'
Expected behavior
A typed named datetime should be renamed with an underscore suffix like other built-in types
Activity
fix: Generate valid code when a property of a model is named "datetim…
fix: Generate valid code when a property of a model is named "datetim…