SchemaValidationError class
A single schema validation failure.
path is a precise location of the offending value inside the validated
node, rendered in the form field "links".[2]."Hash" — double-quoted
strings are map keys and bracketed integers are list indices. The root
node is rendered as value.
Constructors
- SchemaValidationError({required String path, required String message})
-
Creates a validation error at
pathwith a human readablemessage.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human readable explanation of the mismatch.
final
- path → String
-
Path to the offending value, e.g.
field "links".[2]."Hash".final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited