pub enum ValidationErrorKind {
Show 23 variants
DuplicateName {
namespace: NameNamespace,
name: String,
},
UnknownType {
name: String,
},
RecursiveType {
cycle: Vec<String>,
},
TypeMismatch {
expected: ValueKind,
actual: ValueKind,
},
UnknownField {
name: String,
},
MissingField {
name: String,
},
UnknownCase {
name: String,
},
MissingUnionPayload,
UnexpectedUnionPayload,
UnknownParameter {
name: String,
},
MissingParameter {
name: String,
},
UnknownOperation {
name: String,
},
IntegerOutOfRange {
value: i64,
},
NonFiniteNumber,
BytesInJson,
InvalidObjectName {
name: String,
},
DuplicateInterface {
reference: String,
},
InvalidPath {
path: String,
},
ObjectNameMismatch {
expected: String,
actual: String,
},
InconsistentObjectObservation {
reference: String,
},
ChildrenMissingBeforeDepth {
depth: u32,
},
ChildrenAtDepthBoundary {
depth: u32,
},
InterfaceResponseMismatch {
expected: String,
actual: String,
},
}Expand description
Machine-readable reason why logical protocol validation failed.
Variants§
DuplicateName
A name occurred more than once in one namespace.
UnknownType
A named type was not declared in the descriptor.
RecursiveType
Named declarations form a recursive cycle.
TypeMismatch
A value has the wrong structural kind.
UnknownField
A record value contains an undeclared field.
MissingField
A record value omitted a required field.
UnknownCase
An enum or union selected an undeclared case.
MissingUnionPayload
A payload-bearing union case omitted value.
UnexpectedUnionPayload
A payload-free union case supplied value.
UnknownParameter
An operation call contains an undeclared argument.
MissingParameter
An operation call omitted a required argument.
UnknownOperation
An operation is not declared by the descriptor.
IntegerOutOfRange
An integer is outside the interoperable safe range.
NonFiniteNumber
A numeric value is NaN or infinite.
BytesInJson
A JSON-interpreted value tree contains protocol bytes.
InvalidObjectName
An object name is not a valid root or non-root path segment.
DuplicateInterface
An object’s ordered interface set contains a duplicate.
InvalidPath
A string is not a canonical absolute Worldspace path.
ObjectNameMismatch
An object name does not match the path where it was observed.
Fields
InconsistentObjectObservation
Equivalent ref/validator observations disagree on object representation.
ChildrenMissingBeforeDepth
An observation omitted children before reaching the requested depth.
ChildrenAtDepthBoundary
An observation included children at the requested depth boundary.
InterfaceResponseMismatch
A response refers to a different interface than its request.