MCPcopy Create free account
hub / github.com/StackStorm/st2 / set_additional_check

Function set_additional_check

st2common/st2common/router.py:108–112  ·  view source on GitHub ↗
(validator, properties, instance, schema)

Source from the content-addressed store, hash-verified

106
107def extend_with_additional_check(validator_class):
108 def set_additional_check(validator, properties, instance, schema):
109 ref = schema.get("x-additional-check")
110 _, func = op_resolver(ref)
111 for error in func(validator, properties, instance, schema):
112 yield error
113
114 return jsonschema.validators.extend(
115 validator_class,

Callers

nothing calls this directly

Calls 2

op_resolverFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected