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

Method validate

st2client/st2client/utils/interactive.py:75–79  ·  view source on GitHub ↗
(input, spec)

Source from the content-addressed store, hash-verified

73
74 @staticmethod
75 def validate(input, spec):
76 try:
77 jsonschema.validate(input, spec, Draft3Validator)
78 except jsonschema.ValidationError as e:
79 raise validation.ValidationError(len(input), six.text_type(e))
80
81 def read(self):
82 message = self.template.format(self.prefix + self.name, **self.spec)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected