pub enum ErrorKind<'s, 'v> {
Show 38 variants
Group,
Schema {
url: &'s str,
},
ContentSchema,
PropertyName {
prop: String,
},
Reference {
kw: &'static str,
url: &'s str,
},
RefCycle {
url: &'s str,
kw_loc1: String,
kw_loc2: String,
},
FalseSchema,
Type {
got: Type,
want: Types,
},
Enum {
want: &'s Vec<Value>,
},
Const {
want: &'s Value,
},
Format {
got: Cow<'v, Value>,
want: &'static str,
err: Box<dyn Error>,
},
MinProperties {
got: usize,
want: usize,
},
MaxProperties {
got: usize,
want: usize,
},
AdditionalProperties {
got: Vec<Cow<'v, str>>,
},
Required {
want: Vec<&'s str>,
},
Dependency {
prop: &'s str,
missing: Vec<&'s str>,
},
DependentRequired {
prop: &'s str,
missing: Vec<&'s str>,
},
MinItems {
got: usize,
want: usize,
},
MaxItems {
got: usize,
want: usize,
},
Contains,
MinContains {
got: Vec<usize>,
want: usize,
},
MaxContains {
got: Vec<usize>,
want: usize,
},
UniqueItems {
got: [usize; 2],
},
AdditionalItems {
got: usize,
},
MinLength {
got: usize,
want: usize,
},
MaxLength {
got: usize,
want: usize,
},
Pattern {
got: Cow<'v, str>,
want: &'s str,
},
ContentEncoding {
want: &'static str,
err: Box<dyn Error>,
},
ContentMediaType {
got: Vec<u8>,
want: &'static str,
err: Box<dyn Error>,
},
Minimum {
got: Cow<'v, Number>,
want: &'s Number,
},
Maximum {
got: Cow<'v, Number>,
want: &'s Number,
},
ExclusiveMinimum {
got: Cow<'v, Number>,
want: &'s Number,
},
ExclusiveMaximum {
got: Cow<'v, Number>,
want: &'s Number,
},
MultipleOf {
got: Cow<'v, Number>,
want: &'s Number,
},
Not,
AllOf,
AnyOf,
OneOf(Option<(usize, usize)>),
}
Expand description
A list specifying general categories of validation errors.
Variants§
Group
Schema
ContentSchema
PropertyName
Reference
RefCycle
FalseSchema
Type
Enum
Const
Format
MinProperties
MaxProperties
AdditionalProperties
Required
Dependency
DependentRequired
MinItems
MaxItems
Contains
MinContains
MaxContains
UniqueItems
AdditionalItems
MinLength
MaxLength
Pattern
ContentEncoding
ContentMediaType
Minimum
Maximum
ExclusiveMinimum
ExclusiveMaximum
MultipleOf
Not
AllOf
none of the subschemas matched
AnyOf
none of the subschemas matched.
OneOf(Option<(usize, usize)>)
None
: none of the schemas matched.- Some(i, j): subschemas at i, j matched