You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a Display for Violation which could represent all the violations in a nested struct form.
(Adding the type name for which the violation occurred should help direct to the root cause)
e.g.
Schema:
type::{
name: my_int,
type: int,
}
Input(value to be validated):
[1, 2]
{
message: "value didn't satisfy type constraint(s)",
constraint: my_int,
violations: [
{
message: "expected type Integer, found List",
constraint: type_constraint,
violations: [ ],
code: type_mismatched
}
],
code: type_constraints_unsatisfied
}
The text was updated successfully, but these errors were encountered:
Implement a
Display
forViolation
which could represent all the violations in a nested struct form.(Adding the type name for which the violation occurred should help direct to the root cause)
e.g.
The text was updated successfully, but these errors were encountered: