def response_schema(self, schema): if schema is not None: _validation.validate_schema(schema) self._response_schema = schema # this location is the last item in the dict, sadly self._response_schema_location = get_callsite_location()
def params_schema(self, schema): if schema is not None: _validation.validate_schema(schema) self._params_schema = sort_schema(schema) self._params_schema_location = get_callsite_location()