AsyncAPI Best Practices
asyncapi-channel-no-query-nor-fragment
general > asyncapi-channel-no-query-nor-fragment
Guidance / Message
Channel "{{apiContract.path}}" has query parameters or fragments in its channel name. Use bindings instead to define them.
Examples
valid
channels:
myChannel:
parameters:
myQueryParam:
schema:
type: string
bindings:
amqp:
is: queue
queue:
name: myQueue
invalid
channels:
myChannel?someparam=1#somefragment:
parameters:
myQueryParam:
schema:
type: string
Applies to EndPoint