We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from cloudevents.sdk.http_events import CloudEvent attributes = {"source": "<source-url>", "type": "com.issue.extensions", "example-extension": "ext1"} data = 'Hello' event = CloudEvent(attributes, data) headers, body = event.to_http() print(body)
The above code will produce the following:
b'{"specversion": "1.0", "id": "fc713795-93f6-44a8-b67e-7b8bd7071e2a", "source": "<source-url>", "type": "com.issue.extensions", "time": "2020-07-16T22:41:48.222788+00:00", "extensions": {"example-extension": "ext1"}, "data": "Hello"}'
When in fact we expectthis to be outputted:
b'{"specversion": "1.0", "id": "fc713795-93f6-44a8-b67e-7b8bd7071e2a", "source": "<source-url>", "type": "com.issue.extensions", "time": "2020-07-16T22:41:48.222788+00:00", "example-extension": "ext1", "data": "Hello"}'
Current output is readable by python CloudEvents, but possibly not by other cloudevent systems unless I'm misunderstanding extensions.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Actual Behavior
The above code will produce the following:
When in fact we expectthis to be outputted:
Current output is readable by python CloudEvents, but possibly not by other cloudevent systems unless I'm misunderstanding extensions.
The text was updated successfully, but these errors were encountered: