cloudevents.kafka.to_binary
checks for a content-type
attribute, which would not be a valid attribute name
#211
Labels
bug
Something isn't working
sdk-python/cloudevents/kafka/conversion.py
Line 90 in ef98274
This will call
CloudEvent._get_attributes()["content-type"]
but acontent-type
attribute will violate the attribute naming rules:https://github.com/cloudevents/spec/blob/30f1a081743bfe06b45b85519dd145f14a1ad22c/cloudevents/spec.md?plain=1#L173-L175
It is not really that clear to me why this is being done, but it also causes some problems when
event
is a Pydantic cloud event, but regardless of that it seems pretty clear that it is wrong.The text was updated successfully, but these errors were encountered: