def validate(self, request):
    try:
        self._validator(request)
    except fastjsonschema.exceptions.JsonSchemaException as e:
        raise MalformedRequest('{} is invalid. Reason: {}'.format(request, e.message))
def validate(self, request):
    try:
        self._validator(request)
    except fastjsonschema.exceptions.JsonSchemaException as e:
        raise MalformedRequest('{} is invalid. Reason: {}'.format(request, e.message))