Closed jymchng closed 1 year ago
add the following 2 lines:
if _cls.__fields__[field].default: _cls.__fields__[field].default = None
the optional decorator is meant for IUpdateSchemaType and an 'UpdateSchema' should have all its fields' default set to None.
optional
IUpdateSchemaType
Thanks @jymchng for this PR
add the following 2 lines:
the
optional
decorator is meant forIUpdateSchemaType
and an 'UpdateSchema' should have all its fields' default set to None.