Validation Data Classes¶
Data models for validation of input datasets for generating scenarios.
RuleConfiguration
dataclass
¶
Context information for configuring a data validator.
RuleInfo
dataclass
¶
Contains summary information on the rule type and corresponding friendly rule name (which is synced with the one in the RuleConfiguration object).
RuleResult
dataclass
¶
Contains information on the result of validating a single rule.
category
property
¶
Returns the validation category of the specified rule.
Returns:
Type | Description |
---|---|
ValidationCategory
|
Validation category of the specified rule. |
success
property
¶
Whether the result contains any warnings or errors depending on the rule configuration.
:returns: True if there are no errors or warnings depending on the rule configuration, else False.
SubmitResult
dataclass
¶
Contains information on the status of submitting a set of layers for validation.
ValidationResult
dataclass
¶
Contains information on the result of validating multiple rules i.e. an aggregation of RuleResult objects.
errors
property
¶
Returns RuleResult objects that are of ERROR category and contain one or more error messages.
Returns:
Type | Description |
---|---|
list
|
RuleResult objects that are of ERROR category and contain one or mor error messages. |
success
property
¶
Whether the result contains any warnings or errors based on the individual rule results.
:returns: True if there are no errors or warnings for any of the RuleResult objects, else False.
warnings
property
¶
Returns RuleResult objects that are of WARNING category and contain one or more error messages.
Returns:
Type | Description |
---|---|
list
|
RuleResult objects that are of WARNING category and contain one or mor error messages. |
__iter__ ¶
__len__ ¶
Gets the number of rule results in the object.
Returns:
Type | Description |
---|---|
int
|
The number of rule results in the object. |