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)
-
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
-
property