asyncapi-latest-version
Checking if the AsyncAPI document is using the latest version.
- Applies to
asyncapi- Selects
$.asyncapi- Function
schema- Specs
- AsyncAPI 2.xAsyncAPI 3.x
- Message
The latest version is not used. You should update to the "3.1.0" version.
Use it
This rule ships with OpenLint in spectral:asyncapi. Extending the ruleset turns it on:
extends: spectral:asyncapi
rules:
asyncapi-latest-version: info # or off, or another severity
Definition
As defined in @openlint/openlint-rulesets. Functions show by name.
asyncapi-latest-version:
description: Checking if the AsyncAPI document is using the latest version.
message: The latest version is not used. You should update to the "3.1.0" version.
severity: info
recommended: true
formats:
- AsyncAPI 2.x
- AsyncAPI 3.x
given: $.asyncapi
then:
function: schema
functionOptions:
schema:
const: 3.1.0
About this rule
Checking if the AsyncAPI document is using the latest version.