Represents
Violation found during validation with detailed error message, error code and the constraint for which the validation failed
Equivalence of
Violation
is not supported due to its tree structure of having children
Violation
s.
Please use macro
assert_equivalent_violations!(violation1, violation2)
for comparing if two violations are equal.
This macro uses
flattened_violations
and does not depend on the order of the children
Violation
s.
For non-equivalent violations use macro
assert_non_equivalent_violations!(violation1, violation2)
.