operation-tags
Operation must have non-empty "tags" array.
- Applies to
tags- Selects
#OperationObject- Function
schema- 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-tags: warn # or off, or another severity
Definition
As defined in @openlint/openlint-rulesets. Functions show by name.
operation-tags:
description: Operation must have non-empty "tags" array.
recommended: true
given: '#OperationObject'
then:
field: tags
function: schema
functionOptions:
dialect: draft7
schema:
type: array
minItems: 1
About this rule
Operation should have non-empty tags array.