CloudEvent must be an abstraction of the spec, and not JSON specific #12959
Labels
Client
This issue points to a problem in the data-plane of the library.
Event Grid
Messaging
Messaging crew
Milestone
Again, I'm not saying the current prototype is incorrect, but writting this issue so I'm sure we address the spec explicitly.
Cloud Event is an abstraction of what is an event: https://github.com/cloudevents/spec/blob/v1.0/spec.md
As so, our
CloudEvent
class should not assume any serialization of aCloudEvent
concept, and model the concept without thinking about the serialization. This implies:data_base64
attribute, but helpers to set bytes correctlyExample:
A JSON serialization of this would be:
While a binary mode serialization would be HTTP request
The text was updated successfully, but these errors were encountered: