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
When using the Field annotation on an arg to be converted into a JSON field, nullable types don't work as expected. Using Optional directly throws an error, but you can work around this by using the x | None syntax instead. However, this is causing the request body to include unintended nulls.
Describe the bug
When using the Field annotation on an arg to be converted into a JSON field, nullable types don't work as expected. Using Optional directly throws an error, but you can work around this by using the
x | None
syntax instead. However, this is causing the request body to include unintended nulls.To Reproduce
Result:
TypeError: issubclass() arg 1 must be a class
Result
It would be nice if this had the same behavior as Query params.
The text was updated successfully, but these errors were encountered: