-
-
Notifications
You must be signed in to change notification settings - Fork 364
Description
It is nice to use a trait to add CloudEvents in "Binary Mode" to AsyncAPI.
Currently, there is no official Trait for CloudEvents, and some examples are floating around in various repos.
The idea was already proposed to the CloudEvents team: cloudevents/spec#1276 and discussed in a call.
We agreed it would make more sense to add such a trait to the AsyncAPI spec, as it would be more appropriate to add it to AsyncAPI, so that it can be versioned together.
To create such CloudEvents, Traits were already discussed in #1057. This issue would be the proposal to add it to the AsyncAPI Spec.
Other solutions
#432 discussed an alternative solution to the problem.
Example
I already created a first proposal for what I like to add in https://github.com/Lazzaretti/asyncapi-with-cloudevents-traits.
The trait for Kafka is here: https://github.com/Lazzaretti/asyncapi-with-cloudevents-traits/blob/main/traits/cloudevents-headers-kafka-binary.yaml