spectral:arazzo error on by default

arazzo-workflow-depends-on-validation

Every workflow dependency must be valid.

Applies to
dependsOn
Selects
$
Function
arazzoWorkflowDependsOnValidation
Specs
Arazzo 1.0

Use it

This rule ships with OpenLint in spectral:arazzo. Extending the ruleset turns it on:

extends: spectral:arazzo
rules:
  arazzo-workflow-depends-on-validation: error   # or off, or another severity

Definition

As defined in @openlint/openlint-rulesets. Functions show by name.

arazzo-workflow-depends-on-validation:
  description: Every workflow dependency must be valid.
  severity: 0
  given: $
  then:
    function: arazzoWorkflowDependsOnValidation

About this rule

The list of defined workflows within the dependsOn property must be unique and must be valid (e.g. the runtime expression must resolve to a defined workflow).

Sources