SchemaValidationIssue class

A single schema validation finding with a JSON path.

Annotations

Constructors

SchemaValidationIssue({required String path, required String message, SchemaIssueSeverity severity = SchemaIssueSeverity.error, String? fieldKey, String? expected, String? actual})
Creates a SchemaValidationIssue.
const

Properties

actual String?
What was found (optional).
final
expected String?
What was expected (optional).
final
fieldKey String?
Related field key when known.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable description.
final
path String
JSON-pointer-like path, e.g. fields[0].key or $ for root.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity SchemaIssueSeverity
Error vs warning.
final

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