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

Class MuxValidator

st2client/st2client/utils/interactive.py:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43class MuxValidator(validation.Validator):
44 def __init__(self, validators, spec):
45 super(MuxValidator, self).__init__()
46
47 self.validators = validators
48 self.spec = spec
49
50 def validate(self, document):
51 input = document.text
52
53 for validator in self.validators:
54 validator(input, self.spec)
55
56
57class StringReader(object):

Callers 1

_construct_validatorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected