Skip to main content

ValidationError

Type Alias ValidationError 

Source
pub type ValidationError = ActionValidationError;
Expand description

Convenience alias for ActionValidationError.

Aliased Type§

pub enum ValidationError {
    MissingAction,
    MissingField {
        field: String,
    },
    WrongType {
        field: String,
    },
    NotAvailableOverRest {
        action: String,
    },
    UnknownAction {
        action: String,
    },
}

Variants§

§

MissingAction

No action was supplied.

§

MissingField

A required field was absent or empty.

Fields

§field: String

Name of the missing field.

§

WrongType

A field was present but had the wrong JSON type (expected a string).

Fields

§field: String

Name of the wrongly-typed field.

§

NotAvailableOverRest

The action exists but is MCP-only and cannot be called over REST.

Fields

§action: String

The requested action name.

§

UnknownAction

The requested action name is not recognised.

Fields

§action: String

The unrecognised action name.