[azeventgrid] CloudEvent v2 design - ease of use, confusion of types #21289
Labels
Client
This issue points to a problem in the data-plane of the library.
design-discussion
An area of design currently under discussion and open to team and community feedback.
Event Grid
Event Hubs
Milestone
@jhendrixMSFT brought this up in #21282, and it sparks some other conversations about the type that I think are worth talking about.
Some things I want to look at:
uuid.New
can return an error - not the greatest experience.Data
is doing double-duty because of it - we're allowing you to pass a []byte (to signal 'binary encoding') and also any other struct/JSON-serializable value.The text was updated successfully, but these errors were encountered: