Enum paperclip_core::ValidationError[][src]

pub enum ValidationError {
    InvalidRefUri(String),
    MissingReference(String),
    MissingSchemaForBodyParameter(StringString),
    InvalidHeader(StringString),
}
Expand description

Errors related to spec validation.

Variants

InvalidRefUri(String)

Failed to resolve the schema because an invalid URI was provided for $ref field.

Currently, we only support #/{definitions,parameters}/Name in $ref field.

Tuple Fields of InvalidRefUri

0: String
MissingReference(String)

The specified reference is missing in the spec.

Tuple Fields of MissingReference

0: String
MissingSchemaForBodyParameter(StringString)

If a parameter specifies body, then schema must be specified.

Tuple Fields of MissingSchemaForBodyParameter

0: String1: String
InvalidHeader(StringString)

Some headers have special meaning in OpenAPI. The user cannot have these headers in their API spec.

Tuple Fields of InvalidHeader

0: String1: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.