I have an AsyncAPI document that defines a message with an existing payload type.
channels:
onboarding-consumption:
publish:
operationId: publishConsumptionEvent
summary: Notify of application usage for consumption reporting purposes.
message:
name: consumptionEvent
title: Consumption Event
headers:
$ref: "#/components/schemas/message-header"
correlationId:
$ref: "#/components/correlationIds/defaultCorrelationId"
payload:
$ref: "#/components/schemas/consumption"
tags:
- name: onboarding
Effectively I want to use the same existing payload type, but I want to add additional properties to that payload type, but in a different message definition. Is there a way to subtype (and potentially override) a schema or to merge schemas? The same question would apply to header types as well.