AsyncAPI Best Practices

asyncapi-channel-no-empty-parameter

general > asyncapi-channel-no-empty-parameter


Guidance / Message

Channel parameter declarations cannot be empty; ex./given/{} is invalid.

Examples

valid

channels:
  /endpoint/{userId}:
    parameters:
      userId:
        description: Id of the user.
        schema:
          type: string

invalid

channels:
  /endpoint/{}:
    parameters:
      userId:
        description: Id of the user.
        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