asyncapi-server-not-example-com
Server URL must not point at example.com.
- Applies to
url- Selects
$.servers[*].url- Function
pattern- Specs
- AsyncAPI 2.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-server-not-example-com: true
Definition
As defined in @openlint/openlint-rulesets. Functions show by name.
asyncapi-server-not-example-com:
description: Server URL must not point at example.com.
recommended: false
formats:
- AsyncAPI 2.x
given: '$.servers[*].url'
then:
function: pattern
functionOptions:
notMatch: example\.com
About this rule
Server URL should not point to example.com.