Arazzo 1.1 validation rules
Arazzo workflows now get structural feedback from twelve new error rules in the arazzo lint
pack, each checked against the version the document declares.
See the rules.
- Runtime expressions: a
$-expression that does not parse is reported with the position where it stops, in parameters, request bodies and success criteria. - Criteria and actions: a
jsonpathorregexcriterion needs acontext, and agotomust name a step or workflow that exists. - References and ids:
$components.*references must resolve, step and workflow ids must be unique, anddependsOnmust not loop. - Parameters, inputs and outputs: a parameter's
inmust suit its step's source (1.1 addsquerystring, andheader/channelfor AsyncAPI steps),inputsmust be JSON Schema 2020-12, and every output must be a runtime expression or, from 1.1, a selector object. - Source types: each
sourceDescriptions[].typemust be one the version defines. - A corrected rule id:
arzzo.unresolvable-operation-refis nowarazzo.unresolvable-operation-ref. The old id is an alias, so style guides, stored findings and waivers that name it keep matching. - REST:
GET /v1/lint/ruleslists each rule'saliases.
See Built-in lint rules.
