-
Notifications
You must be signed in to change notification settings - Fork 160
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
Invalid Kafka Binary event when content-type not provided #370
Comments
TBH I don't recall this particular sentence, but looking at it, it seems to me there are two conflicting sentences https://github.com/cloudevents/spec/blob/v1.0.1/kafka-protocol-binding.md#3-kafka-message-mapping:
And then:
I'm gonna open an issue in the spec repo |
I assume in the first paragraph, the key sentence is "If the header is present..." |
@shnplr I've opened an issue cloudevents/spec#812 and proposed 2 solutions, feel free to provide your input there. |
The conflicting sentence was removed from the spec: slinkydeveloper/spec@c023f5c I'm going to close this issue because I think it's solved now, reopen if you need it. |
The Kafka spec states in section 3:
If the content-type header is not present then the receiver uses structured mode with the JSON event format.
Since the SDK allows a binary message with
data
to be generated without providingdataContentType
, the assumption here is that consumers MUST assume this is a Structured event (even though its not).Question
application/cloudevents
.data
and nocontent-type
?The text was updated successfully, but these errors were encountered: