Skip to content

s/contenttype/datacontenttype/g#363

Merged
duglin merged 1 commit into
cloudevents:masterfrom
duglin:issue354
Jan 24, 2019
Merged

s/contenttype/datacontenttype/g#363
duglin merged 1 commit into
cloudevents:masterfrom
duglin:issue354

Conversation

@duglin
Copy link
Copy Markdown
Collaborator

@duglin duglin commented Jan 2, 2019

Closes #354

2 reasons for this change:
1 - it just makes sense to me that if you have a foo property, then
the property the describes its type is called footype, not bartype.
2 - when a transport, like http, already has a contenttype property, there
could be unnecessary confusion when the CloudEvents property is serialized
along side the transport one. Meaning, people might use the wrong one
since their names are almost the same.

Signed-off-by: Doug Davis dug@us.ibm.com

@JemDay
Copy link
Copy Markdown
Contributor

JemDay commented Jan 15, 2019

I believe this makes sense ... we may need a communication strategy to address the fact that this is another breaking change which has potential to impact early adopters.

Granted we're still in a sub 1.0 state but we might want to warn people off 0.2 if 0.3 (or 1.0) is considered close.

@duglin
Copy link
Copy Markdown
Collaborator Author

duglin commented Jan 17, 2019

Note: this will be discussed (and possibly resolved) on today's call and since this is a breaking change please speak up if you have any concerns.

Closes cloudevents#354

2 reasons for this change:
1 - it just makes sense to me that if you have a `foo` property, then
    the property the describes its type is called `footype`, not `bartype`.
2 - when a transport, like http, already has a `contenttype` property, there
    could be unnecessary confusion when the CloudEvents property is serialized
	along side the transport one. Meaning, people might use the wrong one
	since their names are almost the same.

Signed-off-by: Doug Davis <dug@us.ibm.com>
Comment thread json-format.md
If the `datacontenttype` value does not follow the
[structured +json suffix][RFC6839] but is known to use JSON encoding, the
implementation MUST translate the `data` attribute value into a
[JSON value][JSON-Value], and set the `data` attribute of the envelope
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the name change here... but things go pushed past 80 columns so I had to wrap stuff earlier.

@duglin
Copy link
Copy Markdown
Collaborator Author

duglin commented Jan 18, 2019

Per the call yesterday I've changed the name to DataContentType - please review for next week's call.

@duglin
Copy link
Copy Markdown
Collaborator Author

duglin commented Jan 24, 2019

Just a poke to remind people to review this one as it's an attribute name change - this will come up today's call.

@duglin duglin changed the title s/contenttype/datatype/g s/contenttype/datacontenttype/g Jan 24, 2019
@duglin duglin merged commit de29937 into cloudevents:master Jan 24, 2019
@duglin duglin deleted the issue354 branch March 16, 2019 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants