From 32a679bca4121a1ec2a2d020c09fc9ad4450c548 Mon Sep 17 00:00:00 2001 From: Rachel Myers Date: Thu, 8 Nov 2018 14:41:17 -0800 Subject: [PATCH 1/2] Specify the media type for proto representations Signed-off-by: Rachel Myers --- protobuf-format.md | 1 + 1 file changed, 1 insertion(+) diff --git a/protobuf-format.md b/protobuf-format.md index cc0d65d7e..6c91d84ca 100644 --- a/protobuf-format.md +++ b/protobuf-format.md @@ -88,6 +88,7 @@ The CloudEvents type system MUST be mapped into the fields of | Integer | int_value | Any | Not applicable. Any is the enclosing CloudEventAny message itself +Protocol Buffer representations of CloudEvents use the media type `application/cloudevents+proto`. ## 3. Examples From 31d76c167fa64fba145a113fbeb37712f5705923 Mon Sep 17 00:00:00 2001 From: Rachel Myers Date: Thu, 15 Nov 2018 13:30:35 -0800 Subject: [PATCH 2/2] Add `MUST` to media types in proto and json Signed-off-by: Rachel Myers --- json-format.md | 2 +- protobuf-format.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json-format.md b/json-format.md index 4fa9b4948..0c20a4450 100644 --- a/json-format.md +++ b/json-format.md @@ -114,7 +114,7 @@ The CloudEvents [JSONSchema](http://json-schema.org) for the spec is located Each CloudEvents event can be wholly represented as a JSON object. -Such a representation uses the media type `application/cloudevents+json`. +Such a representation MUST use the media type `application/cloudevents+json`. All REQUIRED and all not omitted OPTIONAL attributes in the given event MUST become members of the JSON object, with the respective JSON object member name diff --git a/protobuf-format.md b/protobuf-format.md index 6c91d84ca..cc8ca620a 100644 --- a/protobuf-format.md +++ b/protobuf-format.md @@ -88,7 +88,7 @@ The CloudEvents type system MUST be mapped into the fields of | Integer | int_value | Any | Not applicable. Any is the enclosing CloudEventAny message itself -Protocol Buffer representations of CloudEvents use the media type `application/cloudevents+proto`. +Protocol Buffer representations of CloudEvents MUST use the media type `application/cloudevents+proto`. ## 3. Examples