MCPcopy
hub / github.com/hugapi/hug / validate

Method validate

hug/routing.py:85–87  ·  view source on GitHub ↗

Sets the secondary validation fucntion to use for this handler

(self, validation_function, **overrides)

Source from the content-addressed store, hash-verified

83 return self.where(transform=function, **overrides)
84
85 def validate(self, validation_function, **overrides):
86 """Sets the secondary validation fucntion to use for this handler"""
87 return self.where(validate=validation_function, **overrides)
88
89 def api(self, api, **overrides):
90 """Sets the API that should contain this route"""

Callers 3

test_validateMethod · 0.45
test_validateMethod · 0.45
requestMethod · 0.45

Calls 1

whereMethod · 0.95

Tested by 2

test_validateMethod · 0.36
test_validateMethod · 0.36