AsyncAPI Best Practices

(0 reviews)

asyncapi-operation-operationId

general > asyncapi-operation-operationId


Guidance

This operation ID is essentially a reference for the operation, which can be used to visually suggest a connection

to other operations. This is like some theoretical static HATEOAS-style referencing, but it's also used for the

URL in some documentation systems.

Message

Operation '{{apiContract.method}}' must have and operationId field describing the actions that are being performed in hyphen-case.

Examples

valid

/endpoint:
  subscribe:
    operationId: subs-ops
    message:
      x-pageSize: 5

invalid

/endpoint:
  subscribe:
    message:
      x-pageSize: 5

Applies to Operation

Constraint

Type: Declarative Validation

Reviews

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