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
When defining custom formatters with SwaggerFormat, the validate function has to handle None values. So all my validators are littered with code like this:
defmy_validator(val):
ifvalisnotNone:
# real validation here
Shouldn't None be special-cased, left to x-nullable checking, never calling the validator when value==None is True? This is quite tedious.
The text was updated successfully, but these errors were encountered:
When defining custom formatters with SwaggerFormat, the validate function has to handle None values. So all my validators are littered with code like this:
Shouldn't None be special-cased, left to x-nullable checking, never calling the validator when
value==None
isTrue
? This is quite tedious.The text was updated successfully, but these errors were encountered: