Skip to content

Validation of properties does not work #22

@ravi105362

Description

@ravi105362

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions