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

Constraint

Type: Declarative Validation
TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onNov 29, 2023
Asset overview

Asset versions for 1.1.x

Asset versions
VersionActions
1.1.0

Tags