Skip to content

Commit

Permalink
Merge pull request #386 from cneijenhuis/uri-reference-cleanup
Browse files Browse the repository at this point in the history
Consistency: schemaurl uses URI-reference, protobuf uses URI-reference
  • Loading branch information
Doug Davis authored Feb 7, 2019
2 parents 70b6522 + 17c32ea commit 8786d0e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
18 changes: 9 additions & 9 deletions protobuf-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ The CloudEvents type system MUST be mapped into the fields of
`CloudEventAny` as follows:


| CloudEvents | CloudEventAny field
|--------------|-------------------------------------------------------------
| String | string_value
| Binary | binary_value
| URI | string_value (string expression conforming to URI-reference as defined in [RFC 3986 §4.1](https://tools.ietf.org/html/rfc3986#section-4.1))
| Timestamp | string_value (string expression as defined in [RFC 3339](https://tools.ietf.org/html/rfc3339))
| Map | map_value
| Integer | int_value
| Any | Not applicable. Any is the enclosing CloudEventAny message itself
| CloudEvents | CloudEventAny field
|---------------|-------------------------------------------------------------
| String | string_value
| Binary | binary_value
| URI-reference | string_value (string expression conforming to URI-reference as defined in [RFC 3986 §4.1](https://tools.ietf.org/html/rfc3986#section-4.1))
| Timestamp | string_value (string expression as defined in [RFC 3339](https://tools.ietf.org/html/rfc3339))
| Map | map_value
| Integer | int_value
| Any | Not applicable. Any is the enclosing CloudEventAny message itself

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

Expand Down
2 changes: 1 addition & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"schemaurl": {
"type": "string",
"format": "uri"
"format": "uri-reference"
},
"type": {
"type": "string",
Expand Down
4 changes: 1 addition & 3 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,14 @@ help intermediate gateways determine how to route the events.
[RFC 3339](https://tools.ietf.org/html/rfc3339)

### schemaurl
* Type: `URI`
* Type: `URI-reference`
* Description: A link to the schema that the `data` attribute adheres to.
Incompatible changes to the schema SHOULD be reflected by a different URL.
See
[Versioning of Attributes in the Primer](primer.md#versioning-of-attributes)
for more information.
* Constraints:
* OPTIONAL
* If present, MUST adhere to the format specified in
[RFC 3986](https://tools.ietf.org/html/rfc3986)

### datacontenttype
* Type: `String` per [RFC 2046](https://tools.ietf.org/html/rfc2046)
Expand Down

0 comments on commit 8786d0e

Please sign in to comment.