Module licenseware.common.validators.validate_event

Expand source code
from licenseware.common.serializers.event_schema import EventSchema

from .schema_validator import schema_validator


def validate_event(payload:dict, raise_error=True):
    return schema_validator(EventSchema, payload, raise_error=raise_error)
    

Functions

def validate_event(payload: dict, raise_error=True)
Expand source code
def validate_event(payload:dict, raise_error=True):
    return schema_validator(EventSchema, payload, raise_error=raise_error)