asyncapi-3-operation-description
Operation "description" must be present and non-empty string.
- Applies to
description- Selects
$.operations.*- Function
truthy- Specs
- AsyncAPI 3.x
Use it
This rule ships with OpenLint in spectral:asyncapi. Extending the ruleset turns it on:
extends: spectral:asyncapi
rules:
asyncapi-3-operation-description: warn # or off, or another severity
Definition
As defined in @openlint/openlint-rulesets. Functions show by name.
asyncapi-3-operation-description:
description: Operation "description" must be present and non-empty string.
recommended: true
formats:
- AsyncAPI 3.x
given: $.operations.*
then:
field: description
function: truthy
About this rule
Operation objects should have a description.