camaraproject / Commonalities

Repository to describe, develop, document and test the common guidelines and assets for CAMARA APIs
Apache License 2.0
14 stars 28 forks source link

Cloud Event media type problem: "cloudevents+json" #345

Open FabrizioMoggio opened 3 days ago

FabrizioMoggio commented 3 days ago

Problem description in the template for Cloud Event (https://github.com/camaraproject/Commonalities/blob/main/artifacts/notification-as-cloud-event.yaml) it is defined in line 81: "application/cloudevents+json".

This media type is not included in the list of standard media-type: https://www.iana.org/assignments/media-types/media-types.xhtml

Expected behavior modify line 81 as "application/json"

Additional context https://cloud.google.com/eventarc/docs/cloudevents-json

patrice-conil commented 3 days ago

Hi @FabrizioMoggio, It was defined as specified in cloudevents http binding. Do you have any problem to handle it ? It's used by framework that manage cloudevents like cloudevents/sdk-java.

rartych commented 3 days ago

The issue was discussed previously: https://github.com/camaraproject/Commonalities/pull/43#discussion_r1397706252