Module licenseware.common.validators.validate_route

Expand source code
from marshmallow import ValidationError



def validate_route(value):
    if not value.startswith('/') and len(value) < 2:
        raise ValidationError("Routes must start with '/'")
    

Functions

def validate_route(value)
Expand source code
def validate_route(value):
    if not value.startswith('/') and len(value) < 2:
        raise ValidationError("Routes must start with '/'")