Closed sasha-tkachev closed 1 year ago
Hey @sasha-tkachev. Thx for opening the issue.
Although, I'm not sure this is actually an issue. Can you please verify how Event
behaves? CloudEvent
class as noted is a Python-friendly wrapper and thus is not obliged to follow the spec and may have different behavior.
There's also an open issue in the spec itself that I believe is related to the behavior you're showcasing: https://github.com/cloudevents/spec/issues/558.
Ok
Expected Behavior
JSON format spec section [#3.1.1] states
Actual Behavior
When an encoded json value is passed into the cloud even, when
to_json
is invoked the resulting json object has an encoded json object in the data field and not a JSON representation as required.Specifications
#3.1.1