pub enum ValidationError {
Show 18 variants
EntryPointNotFound {
entry_point: String,
available_steps: Vec<String>,
},
UnreachableStep {
step_id: String,
},
EmptyWorkflow,
InvalidStepReference {
step_id: String,
reference_path: String,
referenced_step_id: String,
available_steps: Vec<String>,
},
InvalidReferencePath {
step_id: String,
reference_path: String,
reason: String,
},
UnknownAgent {
step_id: String,
agent_id: String,
available_agents: Vec<String>,
},
UnknownCapability {
step_id: String,
agent_id: String,
capability_id: String,
available_capabilities: Vec<String>,
},
MissingRequiredInput {
step_id: String,
agent_id: String,
capability_id: String,
input_name: String,
},
UnknownIntegration {
step_id: String,
integration_id: String,
available_integrations: Vec<String>,
},
ConnectionLeakToNonSecureAgent {
connection_step_id: String,
agent_step_id: String,
agent_id: String,
},
ConnectionLeakToFinish {
connection_step_id: String,
finish_step_id: String,
},
ConnectionLeakToLog {
connection_step_id: String,
log_step_id: String,
},
InvalidChildVersion {
step_id: String,
child_scenario_id: String,
version: String,
reason: String,
},
StepNotYetExecuted {
step_id: String,
referenced_step_id: String,
},
UnknownVariable {
step_id: String,
variable_name: String,
available_variables: Vec<String>,
},
TypeMismatch {
step_id: String,
field_name: String,
expected_type: String,
actual_type: String,
},
InvalidEnumValue {
step_id: String,
field_name: String,
value: String,
allowed_values: Vec<String>,
},
DuplicateStepName {
name: String,
step_ids: Vec<String>,
},
}Expand description
Errors that can occur during validation.
Variants§
EntryPointNotFound
Entry point step does not exist in the workflow.
UnreachableStep
A step is not reachable from the entry point.
EmptyWorkflow
Workflow has no steps defined.
InvalidStepReference
A step reference points to a non-existent step.
Fields
InvalidReferencePath
A reference path has invalid syntax.
UnknownAgent
Agent does not exist.
UnknownCapability
Capability does not exist for the agent.
MissingRequiredInput
Required capability input is missing.
UnknownIntegration
Unknown integration ID for connection step.
ConnectionLeakToNonSecureAgent
Connection data is referenced by a non-secure agent.
ConnectionLeakToFinish
Connection data is referenced by a Finish step.
ConnectionLeakToLog
Connection data is referenced by a Log step.
InvalidChildVersion
Invalid child scenario version format.
StepNotYetExecuted
A step references another step that hasn’t executed yet.
UnknownVariable
A variable reference points to a non-existent variable.
TypeMismatch
An immediate value has the wrong type for the expected field.
InvalidEnumValue
An enum value is not in the allowed set.
DuplicateStepName
Multiple steps have the same name.
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more