Skip to content

Commit cfe0663

Browse files
rachelmyersDoug Davis
authored andcommitted
Specify the media type for proto representations (#346)
* Specify the media type for proto representations Signed-off-by: Rachel Myers <rachelmyers@google.com> * Add `MUST` to media types in proto and json Signed-off-by: Rachel Myers <rachelmyers@google.com>
1 parent ab0e6e2 commit cfe0663

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

json-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The CloudEvents [JSONSchema](http://json-schema.org) for the spec is located
119119

120120
Each CloudEvents event can be wholly represented as a JSON object.
121121

122-
Such a representation uses the media type `application/cloudevents+json`.
122+
Such a representation MUST use the media type `application/cloudevents+json`.
123123

124124
All REQUIRED and all not omitted OPTIONAL attributes in the given event MUST
125125
become members of the JSON object, with the respective JSON object member name

protobuf-format.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ The CloudEvents type system MUST be mapped into the fields of
8888
| Integer | int_value
8989
| Any | Not applicable. Any is the enclosing CloudEventAny message itself
9090

91+
Protocol Buffer representations of CloudEvents MUST use the media type `application/cloudevents+proto`.
9192

9293
## 3. Examples
9394

0 commit comments

Comments
 (0)