arazzo-step-validation
Every step must have a valid "stepId" and an valid "operationId" or "operationPath" or "workflowId".
- Applies to
steps- Selects
$- Function
arazzoStepValidation- 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-step-validation: error # or off, or another severity
Definition
As defined in @openlint/openlint-rulesets. Functions show by name.
arazzo-step-validation:
description: >-
Every step must have a valid "stepId" and an valid "operationId" or
"operationPath" or "workflowId".
severity: 0
given: $
then:
function: arazzoStepValidation
About this rule
Every step must have a valid stepId and either a valid operationId or operationPath or workflowId. Defined runtime expressions are also validated.