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
I have a similar problem to #456, but in my case date-time attribute isn't marked as required. Yet, the model's from_dict method has following code:
OK, that was really stupid... I have two versions of the API, new v2 and legacy v1 one. And I use both in a single regression test, so I double-checked that response doesn't contain null-attributes, but that was v2, not v1, which was indeed misbehaving.
Thank you for your time and reply, and really sorry for the buzz.
Describe the bug
I have a similar problem to #456, but in my case
date-time
attribute isn't marked as required. Yet, the model'sfrom_dict
method has following code:which tries to parse
None
value if there is noretry_at
in the server response.To Reproduce
Client is generated like this
Expected behavior
Client doesn't try to parse absent
date-time
attributes in the response.OpenAPI Spec File
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: