Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions json-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ The following table shows exemplary mappings:
| CloudEvents | Type | Exemplary JSON Value
|--------------------|----------|-------------------------------
| eventType | String | "com.example.someevent"
| eventTypeVersion | String | "1.0"
| cloudEventsVersion | String | "0.1"
| source | URI | "/mycontext"
| eventID | String | "1234-1234-1234"
Expand Down Expand Up @@ -138,7 +137,6 @@ Example event with `String`-valued `data`:
{
"cloudEventsVersion" : "0.1",
"eventType" : "com.example.someevent",
"eventTypeVersion" : "1.0",
"source" : "/mycontext",
"eventID" : "A234-1234-1234",
"eventTime" : "2018-04-05T17:31:00Z",
Expand All @@ -156,7 +154,6 @@ Example event with `Binary`-valued data
{
"cloudEventsVersion" : "0.1",
"eventType" : "com.example.someevent",
"eventTypeVersion" : "1.0",
"source" : "/mycontext",
"eventID" : "B234-1234-1234",
"eventTime" : "2018-04-05T17:31:00Z",
Expand All @@ -175,7 +172,6 @@ a `Map` or [JSON data](#31-special-handling-of-the-data-attribute) data:
{
"cloudEventsVersion" : "0.1",
"eventType" : "com.example.someevent",
"eventTypeVersion" : "1.0",
"source" : "/mycontext",
"eventID" : "C234-1234-1234",
"eventTime" : "2018-04-05T17:31:00Z",
Expand Down
15 changes: 3 additions & 12 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,6 @@ both appear within the same JSON object.
* Examples
* com.github.pull.create

### eventTypeVersion
* Type: `String`
* Description: The version of the `eventType`. This enables the interpretation
of `data` by eventual consumers, requires the consumer to be knowledgeable
about the producer.
* Constraints:
* OPTIONAL
* If present, MUST be a non-empty string

### cloudEventsVersion
* Type: `String`
* Description: The version of the CloudEvents specification which the event
Expand Down Expand Up @@ -360,6 +351,7 @@ both appear within the same JSON object.
### schemaURL
* Type: `URI`
* Description: A link to the schema that the `data` attribute adheres to.
Incompatible changes to the schema SHOULD be reflected by a different URL.
* Constraints:
* OPTIONAL
* If present, MUST adhere to the format specified in
Expand Down Expand Up @@ -417,8 +409,8 @@ encapsulated within the `data` attribute.

### data
* Type: `Object`
* Description: The event payload. The payload depends on the eventType,
schemaURL and eventTypeVersion, the payload is encoded into a media format
* Description: The event payload. The payload depends on the eventType and
the schemaURL. It is encoded into a media format
which is specified by the contentType attribute (e.g. application/json).
* Constraints:
* OPTIONAL
Expand All @@ -431,7 +423,6 @@ The following example shows a CloudEvent serialized as JSON:
{
"cloudEventsVersion" : "0.1",
"eventType" : "com.example.someevent",
"eventTypeVersion" : "1.0",
"source" : "/mycontext",
"eventID" : "A234-1234-1234",
"eventTime" : "2018-04-05T17:31:00Z",
Expand Down