spectral:asyncapi error on by default

asyncapi-schema

Validate structure of AsyncAPI specification.

Applies to
document
Selects
$
Function
function
Specs
AsyncAPI 2.x
Message
{{error}}

Use it

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

extends: spectral:asyncapi
rules:
  asyncapi-schema: error   # or off, or another severity

Definition

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

asyncapi-schema:
  description: Validate structure of AsyncAPI specification.
  message: '{{error}}'
  severity: error
  recommended: true
  formats:
    - AsyncAPI 2.x
  given: $
  then:
    function: function
    functionOptions:
      resolved: true

About this rule

Validate structure of AsyncAPI specification.

Sources