ValidationError
struct ValidationErrorOne reason an instance failed, and where both ends of it are.
path is a JSON Pointer into the instance and keyword_location
is a JSON Pointer into the schema. Reporting only the first leaves
the caller guessing which of the keywords covering that location
objected, which is the common case as soon as a schema uses
allOf or $ref.
Implements Copyable, Movable, Writable
- Fields
path: Stringkeyword_location: Stringmessage: String
__init__
def __init__(out self, path: String, message: String) def __init__(out self, path: String, keyword_location: String, message: String) __str__
def __str__(self) -> String write_to
def write_to[W: Writer](self, mut writer: W)