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