Skip to content

Conversation

@dazuma
Copy link
Member

@dazuma dazuma commented Jun 26, 2021

  • Added a class for opaque event data
  • Added an option to tell HttpBinding#decode_rack_env to return an opaque object if the format isn't recognized
  • Deprecated the HttpContentError class and instead introduced UnsupportedFormatError, to keep error classes binding-agnostic.
  • Introduced FormatSyntaxError to report parsing errors during decoding. These were previously reported as raw JSON errors. (The JSON errors are still set as the cause.)
  • Introduced HttpBinding#encode_event as a single entrypoint for encoding. Deprecated encode_structured_content, encode_batched_content, and encode_binary_content.

Signed-off-by: Daniel Azuma [email protected]

@dazuma dazuma merged commit 71f0ea8 into cloudevents:main Jun 27, 2021
@dazuma dazuma deleted the pr/opaque-events branch June 27, 2021 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant