pub enum DiagnosticKind {
Show 17 variants
UnknownSchemaKeyword {
keyword: String,
},
UnsupportedSchemaKeyword {
keyword: String,
},
UnsupportedSchemaType {
schema_type: String,
},
UnsupportedSchemaShape,
UnsupportedReference {
reference: String,
},
AllOfRecursiveCycle {
reference: String,
},
RecursiveParameterCycle {
reference: String,
},
RecursiveRequestBodyCycle {
reference: String,
},
IncompatibleAllOfField {
field: String,
},
EmptyRequestBodyContent,
EmptyParameterName {
counter: usize,
},
EmptyPropertyKey {
counter: usize,
},
ParameterMissingSchema {
name: String,
},
UnsupportedParameterLocation {
name: String,
},
MultipleRequestBodyDeclarations {
note: String,
},
BodyParameterMissingSchema {
name: String,
},
FormDataParameterMissingSchema {
name: String,
},
}Expand description
Machine-readable classification of an OpenApiDiagnostic.
Variants§
UnknownSchemaKeyword
An unrecognised keyword was found in a schema object.
UnsupportedSchemaKeyword
A recognised but unsupported schema keyword was found.
UnsupportedSchemaType
A schema declared a type string that Arvalez cannot map.
UnsupportedSchemaShape
A schema’s overall shape could not be mapped to a type.
UnsupportedReference
A $ref value points to a location Arvalez cannot resolve.
AllOfRecursiveCycle
A $ref chain inside allOf (or object view collection) is cyclic.
RecursiveParameterCycle
A parameter $ref is cyclic.
RecursiveRequestBodyCycle
A requestBody $ref is cyclic.
IncompatibleAllOfField
Two allOf members declare incompatible values for the same keyword.
EmptyRequestBodyContent
A requestBody object has an empty content map.
EmptyParameterName
A parameter’s name field is the empty string.
EmptyPropertyKey
An object schema property key is the empty string.
ParameterMissingSchema
A non-body parameter has neither a schema nor a type.
UnsupportedParameterLocation
A parameter uses a location (in) value Arvalez cannot handle.
MultipleRequestBodyDeclarations
An operation has multiple conflicting request-body sources.
BodyParameterMissingSchema
A Swagger 2 in: body parameter has no schema.
FormDataParameterMissingSchema
A Swagger 2 in: formData parameter has no schema/type.
Trait Implementations§
Source§impl Clone for DiagnosticKind
impl Clone for DiagnosticKind
Source§fn clone(&self) -> DiagnosticKind
fn clone(&self) -> DiagnosticKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more