smithy-lang / smithy

Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
https://smithy.io
Apache License 2.0
1.7k stars 201 forks source link

Fix body of RpcV2CborClientPopulatesDefaultValuesInInput protocol test #2320

Closed alextwoods closed 2 weeks ago

alextwoods commented 2 weeks ago

Background

The previous body did not include the top level "default" member and decoded to:

{
  "defaultString"=>"hi", 
  "defaultBoolean"=>true, 
  "defaultList"=>[],
  # ect....
}

This adds in the top level "default" so the new body decodes as:

{
  "defaults"=>{
    "defaultString"=>"hi", 
    "defaultBoolean"=>true, 
    "defaultList"=>[],
    # ect...
  }
}

Testing


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.