Open
Description
class ChildSchema(Schema):
id = fields.Integer(required=True)
class TestSchema(Schema):
id = fields.Integer(required=True)
nested_fld = fields.Nested(ChildSchema, allow_none=True)
schema = TestSchema()
dumped = validate_and_dump(schema)
should result on a schema that allows the nested_fld
to either conform to ChildSchema or to be None.
Metadata
Metadata
Assignees
Labels
No labels