in scripts/validate.py [0:0]
def validate_action(action, for_exp):
"""Validate a special message action"""
indentation = "\t" if for_exp else ""
schema = load_schema("action")
print("{}Validate message action {}".format(indentation, action["type"]))
try:
jsonschema.validate(instance=action, schema=schema)
except ValidationError as err:
match = best_match([err])
print("{}Validation error: {}".format(indentation, match.message))
sys.exit(1)