Skip to content

Proposal to add official CloudEvents Traits to the AsyncAPI ownership #1102

@Lazzaretti

Description

@Lazzaretti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions