We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1b0637 commit 162a49bCopy full SHA for 162a49b
2 files changed
gems/smithy-cbor/lib/smithy-cbor/deserializer.rb
@@ -15,7 +15,7 @@ def initialize(options = {})
15
def deserialize(shape, bytes, target)
16
return {} if bytes.empty?
17
18
- ref = shape.is_a?(ShapeRef) ? shape : ShapeRef.new(target: shape)
+ ref = shape.is_a?(ShapeRef) ? shape : ShapeRef.new(shape: shape)
19
shape(ref, CBOR.decode(bytes), target)
20
end
21
gems/smithy-cbor/lib/smithy-cbor/serializer.rb
@@ -13,7 +13,7 @@ def initialize(options = {})
13
14
def serialize(shape, data)
return nil if ref.shape == Prelude::Unit
CBOR.encode(shape(ref, data))
0 commit comments