Azure / buffalo-azure

A gobuffalo plugin for working with Azure.
https://gobuffalo.io/en/docs/plugins
MIT License
29 stars 8 forks source link

support Cloud Events as first-class event type #63

Open joshgav opened 6 years ago

joshgav commented 6 years ago

Should we support Cloud Events (https://cloudevents.io/) as a first-class event type since Event Grid supports them (https://azure.microsoft.com/en-us/roadmap/azure-event-grid-support-cncf-cloud-events/)?

@asw101 thanks for the suggestion!

marstr commented 6 years ago

Makes sense to me! The work to do here is pretty thin.

1. Define structs which unmarshal these nicely. This should likely be automatically done for us by extending the model definitions in the specs repository. I'd be hesitant to write my own until I knew the Event Grid team wasn't going to write Swagger for them. 2. Extend the "wellKnownEvents" to include them.

edit: I just read up about CloudEvents. They are an alternative to the existing Event Grid schema. I'll have to do some tinkering to the runtime to make this work.