-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify meaning of missing datacontentype. #521
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This definitely simplifies the handling of datacontenttype
@alanconway you'll need to sign your commits |
2d36d07
to
d56fda1
Compare
Took a shot at clarifying - whaddya think now? I went with SHOULD, but I really don't think it makes sense to translate an event with a well-known, if not explicitly stated datacontentype (JSON) into say an AMQP or HTTP binary message with a blob of bytes and no clues what to do with them. |
Does this address #519 as well? |
I think it does. |
5d3b032
to
95c441d
Compare
CI failure is an unresponsive external link: https://goextend.io |
Yeah, I noticed that and was hoping it was a temporary thing but if it lasts a day or two more I'm gonna just remove that link from our docs |
@alanconway I think it is a prerequisite to address #519. If this PR with its definition for formats gets accepted, the AMQP format could even be removed and the type mapping for attributes be moved over to the AMQP protocol binding. As long as the AMQP format remains protocol specific and does not define a content-type on its own, the only AMQP values I could think of, would be String and Binary. I don't see any advantage in this compared to binary mode where CE data is always put into AMQP data. |
95c441d
to
e50aa78
Compare
That would be my preference.
The current spec suggests (and I agree) that you set content-type and use a single data section for the body. That means that AMQP types (even binary and string) are never used as data - there are no value-section messages. I would be forgiving on incoming messages and accept string or binary value-sections as if they had been data sections - some AMQP APIs hide those distinctions from the user.
That's above my pay-grade guvnor. |
rebase needed |
Clarify the meaning of missing datacontentype, when it is allowed, and what that means when translating events between formats/protocols. Also replaced "transport" with "protocol" everywhere, I believe that is now the preferred term. "Transport" is not defined in the terminology. Fixes cloudevents#520 Signed-off-by: Alan Conway <aconway@redhat.com>
e50aa78
to
b911da8
Compare
LGTM |
Approved on the 10/10 call |
* Changed name from transport to protocol binding. Adjusted the protocol binding to the definition of event format that is introduced in #521. Signed-off-by: Klaus Deissner <klaus.deissner@sap.com> * Fixed a link Removed the separate AMQP format definition Signed-off-by: Klaus Deissner <klaus.deissner@sap.com> * Fixed links Worked on comments from the PR Signed-off-by: Klaus Deissner <klaus.deissner@sap.com> * Fixed link to already released amqp-transport-binding.md Signed-off-by: Klaus Deissner <klaus.deissner@sap.com> * Rephrased a sentence in type mapping section of binary mode according to what was discussed on the WG call. Signed-off-by: Klaus Deissner <klaus.deissner@sap.com> * Further refinements Signed-off-by: Klaus Deissner <klaus.deissner@sap.com>
Clarify the meaning of missing datacontentype, when it is allowed, and what that means when translating events between formats/protocols.
Also replaced "transport" with "protocol" everywhere, I believe that is now the preferred term. "Transport" is not defined in the terminology.
Fixes #520