Checks
Validation
ValidationResult
Interface for validation result accumulator.
Used to collect violations during validation checks.
__init__
__init__()
Initialize a new ValidationResult.
add_violation
add_violation(violation_reason: str, obj) -> None
Add a violation for a design object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
violation_reason
|
str
|
Human-readable description of the violation. |
required |
obj
|
Design object related to the violation. |
required |