spectral:asyncapi warn off by default

asyncapi-3-server-not-example-com

Server host must not point at example.com.

Applies to
host
Selects
$.servers.*.host
Function
pattern
Specs
AsyncAPI 3.x

Use it

This rule ships with OpenLint in spectral:asyncapi. It's off by default, so turn it on by name:

extends: spectral:asyncapi
rules:
  asyncapi-3-server-not-example-com: true

Definition

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

asyncapi-3-server-not-example-com:
  description: Server host must not point at example.com.
  recommended: false
  formats:
    - AsyncAPI 3.x
  given: $.servers.*.host
  then:
    function: pattern
    functionOptions:
      notMatch: example\.com

About this rule

Server host should not point to example.com.

Sources