asyncapi-3-server-no-trailing-slash
asyncapi-3-server-no-trailing-slash keeps server host and pathname values canonical.
Why did this violation appear?
A server host or pathname ends with /.
Bad example
asyncapi: 3.1.0
servers:
production:
host: '{}.events.example.com/'
pathname: /events/{unused}/
protocol: mqtt
variables:
stale:
default: acme
Good example
asyncapi: 3.1.0
servers:
production:
host: '{tenant}.events.example.com'
pathname: /events/{region}
protocol: mqtt
variables:
tenant:
default: acme
region:
default: us-east
How do I fix this violation?
Remove the final slash from host or pathname and keep path-like routing detail in channels.
