If I used Marshmallow to create such a circuit:
class TempSchema(Schema):
id = fields.Int()
email = fields.Str(required=True,
validate=validate.Email(error='Not a valid email address'))
password = fields.Str(required=True,
validate=[validate.Length(min=6, max=36)],
load_only=True)
and then I do something like:
temp = TempSchema()
temp.dumps({'email':123})
I expect an error, but I get:
MarshalResult(data='{"email": "123"}', errors={})
Why is this or something else not showing up as an error?
source
share