AsyncAPI Best Practices

asyncapi-headers-schema-type-object

general > asyncapi-headers-schema-type-object


Guidance / Message

The schema definition of the application headers must be of type “object” and have properties defined.

Examples

valid

channels:
  myChannel:
    publish:
      message:
        headers:
          type: object
          properties:
            header1:
              type: string

invalid

channels:
  myChannel:
    publish:
      message:
        headers:
          type: object

Applies to Message

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