Enum paperclip::PaperClipError [−][src]
pub enum PaperClipError {
Show 14 variants
Validation(ValidationError),
InvalidCodegenDirectory,
UnsupportedOpenAPIVersion,
RelativePathNotUnique(String),
MissingParametersInPath(String, HashSet<String>),
InvalidHost(String, ParseError),
InvalidBasePathURL(String, ParseError),
MissingArrayItem(Option<String>),
InvalidDefinitionName(String),
MissingDefinitionName,
InvalidDefinitionPath(PathBuf),
Io(Error),
Json(Error),
Yaml(Error),
}
Expand description
Global error which encapsulates all related errors.
Variants
Validation(ValidationError)
Error encountered during spec validation.
Tuple Fields of Validation
The given directory cannot be used for generating code.
Currently, we only support OpenAPI v2, and eventually v3.
RelativePathNotUnique(String)
Paths listed in the spec must be unique.
Tuple Fields of RelativePathNotUnique
0: String
InvalidHost(String, ParseError)
Invalid host for URL.
Tuple Fields of InvalidHost
0: String
1: ParseError
InvalidBasePathURL(String, ParseError)
Invalid base path URL.
Tuple Fields of InvalidBasePathURL
0: String
1: ParseError
The given schema object is an array, but the items
field is missing.
InvalidDefinitionName(String)
The name for the given definition is invalid.
Tuple Fields of InvalidDefinitionName
0: String
The name for the given definition is missing.
InvalidDefinitionPath(PathBuf)
A valid path cannot be obtained for the given definition.
Tuple Fields of InvalidDefinitionPath
0: PathBuf
Io(Error)
I/O errors.
Tuple Fields of Io
0: Error
Json(Error)
JSON coding errors.
Tuple Fields of Json
0: Error
Yaml(Error)
YAML coding errors.
Tuple Fields of Yaml
0: Error
Trait Implementations
Performs the conversion.