spectral:oas warn on by default

operation-tag-defined

Operation tags must be defined in global tags.

Applies to
tags
Selects
$
Function
oasTagDefined
Specs
OpenAPI 2.0OpenAPI 3.0OpenAPI 3.1OpenAPI 3.2

Use it

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

extends: spectral:oas
rules:
  operation-tag-defined: warn   # or off, or another severity

Definition

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

operation-tag-defined:
  description: Operation tags must be defined in global tags.
  recommended: true
  given: $
  then:
    function: oasTagDefined

About this rule

Operation tags should be defined in global tags.

Sources