AsyncAPI Best Practices
asyncapi-server-no-empty-variable
general > asyncapi-server-no-empty-variable
Guidance / Message
The server URL "{{core.urlTemplate}}" should not have empty variable declarations.
Examples
valid
asyncapi: 2.0.0
servers:
production:
url: "amqp://{{host}}.com"
protocol: amqp
description: Production server
variables:
host:
description: The hostname of the server
default: example
invalid
asyncapi: 2.0.0
servers:
production:
url: "amqp://{}.com"
protocol: amqp
description: Production server
Applies to Server