-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello,
I am trying to validate the input using marshmallow, but it does not seems to work -
def validate_verb(value):
try:
VerbTypes(value)
except:
raise marshmallow.ValidationError("Not Valid Verb")
class EndpointRequest(Schema):
__type__ = "endpoint"
id = fields.Integer()
verb = fields.String(required=True, validate=validate_verb)
path = fields.String(required=True)
Response = Response()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels