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
The default is ignored for missing parameters, e.g, with the following JSON body request:
{
"name": "Phred"
}
The output is:
{
"name": "Phred",
"count": None
}
I'd expect it to be:
{
"name": "Phred",
"count": 0
}
Note: x-nullable has no effect here: default is ignored regardless of the x-nullable setting when the property is missing and the value is set to None.
The text was updated successfully, but these errors were encountered:
If I have an object which I specify as a
"in": "body"
parameter for a PUT or POST with properties that havedefault
set, e.g:The default is ignored for missing parameters, e.g, with the following JSON body request:
The output is:
I'd expect it to be:
Note:
x-nullable
has no effect here:default
is ignored regardless of thex-nullable
setting when the property is missing and the value is set toNone
.The text was updated successfully, but these errors were encountered: