#[non_exhaustive]pub enum IssueCode {
Show 19 variants
EmptyWorkflowId,
EmptyWorkflowName,
NoTasks,
MissingStepId,
DuplicateStepId,
EmptyGroup,
GroupTooDeep,
MissingFunction,
InvalidFunctionName,
InvalidTerminal,
LoopIncrementTooSmall,
LoopBoundEmpty,
LoopCounterInvalid,
UnknownFunction,
MissingHandler,
InputParse,
TemplateCompile,
ParseFailed,
ValidateFailed,
}Expand description
Why a workflow definition is not loadable.
#[non_exhaustive]: a later minor may add a rule, and a host matching on
the codes it cares about should keep compiling. Use Self::as_str to
serialize.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyWorkflowId
id is missing or empty.
EmptyWorkflowName
name is missing or empty.
NoTasks
tasks is missing, not an array, or empty.
MissingStepId
A step carries no id.
DuplicateStepId
Two steps share an id. Groups share the task id namespace.
EmptyGroup
A group’s tasks is not a non-empty array.
GroupTooDeep
A group is nested at or beyond
MAX_GROUP_DEPTH.
MissingFunction
A task carries no function.
InvalidFunctionName
function is not an object, or its name is missing or empty.
InvalidTerminal
terminal is present but not a boolean.
LoopIncrementTooSmall
loop.increment is below 1 — the counter would never reach max.
LoopBoundEmpty
loop.max is not greater than loop.init — no sweep could ever run.
LoopCounterInvalid
loop.counter is not a non-empty dotted path.
UnknownFunction
No handler will dispatch this function name, and it is not a built-in. Usually a typo or a handler the host forgot to register.
MissingHandler
The name is a built-in, but one that ships as a config schema only
(http_call, enrich, publish_kafka) and no handler is registered
under it. The workflow builds cleanly and then fails every message.
InputParse
A custom task’s input does not deserialize into its handler’s declared
Input type.
TemplateCompile
A Template field of a custom task’s input does not compile.
ParseFailed
The document does not deserialize into a Workflow. Carries the
parser’s own message, which names the offending field and type.
ValidateFailed
The document parses but Workflow::validate rejects it. A backstop:
reaching this means a rule exists that the checks above do not model.