Changed datacontentencoding to dataencoding #491
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Per discussion on the call last week.
This PR renames
datacontentencoding
todataencoding
and tightens the rules around it since there have been several misunderstandings about what the attribute is meant to help with, see #486 #481 #477The attribute is ONLY for structured mode and ONLY for when a value cannot be correctly expressed in the chosen event format's type system and needs further encoding. The specific concern is making binary fit into JSON.
The attribute does not map to transport-level content encoding concerns like compression or signatures or encryption or the like, specifically not to Content-Transfer-Encoding fields of SMTP or the Content-Encoding or Transfer-Encoding fields of HTTP. This is a CloudEvents specific construct for the aforementioned purpose. That does not at all preclude that one uses message-level compression in HTTP for transferring a CloudEvent; it's simply an orthogonal concern.
Signed-off-by: Clemens Vasters clemensv@microsoft.com