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

Method validate

st2common/st2common/models/api/pack.py:297–306  ·  view source on GitHub ↗
(self, validate_against_schema=False)

Source from the content-addressed store, hash-verified

295 }
296
297 def validate(self, validate_against_schema=False):
298 # Perform base API model validation against json schema
299 result = super(ConfigAPI, self).validate()
300
301 # Perform config values validation against the config values schema
302 if validate_against_schema:
303 cleaned_values = self._validate_config_values_against_schema()
304 result.values = cleaned_values
305
306 return result
307
308 def _validate_config_values_against_schema(self):
309 try:

Callers 2

putMethod · 0.95

Calls 2

validateMethod · 0.45

Tested by

no test coverage detected