Skip to content
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

RPCv2 and cbor support #3006

Merged
merged 71 commits into from
Jun 24, 2024
Merged

RPCv2 and cbor support #3006

merged 71 commits into from
Jun 24, 2024

Conversation

mullermp
Copy link
Contributor

@mullermp mullermp commented Apr 11, 2024

Implements CBOR and RPCv2

Also refactors protocols and related tests.

Encoder and decoder created by @alextwoods


module Aws
module Cbor
Tagged = Struct.new(:tag, :value) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cbor gem also defines its own Tagged class: https://github.com/cabo/cbor-ruby/blob/master/doclib/cbor/tagged.rb#L6
Which it will return when decoding items.

I think we have two options on how to handle this:

  1. In our cbor gem engine adaptor, we replace any Cbor Tagged objects with Aws::Taged objects.
  2. We ensure the intrefaces are the same (ie, remove the use of Struct and just define a class with attr accessors) for our Tagged object. Then just rely no ruby's duck typing.

@mullermp mullermp marked this pull request as ready for review April 16, 2024 21:07
@mullermp mullermp merged commit 106135b into version-3 Jun 24, 2024
28 checks passed
@mullermp mullermp deleted the cbor branch June 24, 2024 23:10
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.

3 participants