h1st.schema.schema_validation_result module

class h1st.schema.schema_validation_result.SchemaValidationResult(errors=None)[source]

Bases: object

This class is used to capture the validation result. All the validation errors are captured in the errors property:

result = SchemaValidator().validate(..., ...)
if not result.success:
    print(result.errors)
__init__(errors=None)[source]

Initialize self. See help(type(self)) for accurate signature.

property errors

List of validation errors. This list is empty if there is no error.

property success

Flag to indicate if there is no validation error

display()[source]

Display the errors to console.