Client Test

Client Test

rev. 70b05a5296f85c2653fee05487976373e11ea4dc

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_dense_maps.rs

@@ -605,605 +664,665 @@
  625    625   
            expected_output.dense_set_map,
  626    626   
            "Unexpected value for `dense_set_map`"
  627    627   
        );
  628    628   
    }
  629    629   
  630    630   
    /// Clients SHOULD tolerate seeing a null value in a dense map, and they SHOULD
  631    631   
    /// drop the null key-value pair.
  632    632   
    /// Test ID: RpcV2CborDeserializesDenseSetMapAndSkipsNull
  633    633   
    #[::tokio::test]
  634    634   
    #[::tracing_test::traced_test]
         635  +
    #[should_panic]
  635    636   
    async fn rpc_v2_cbor_deserializes_dense_set_map_and_skips_null_response() {
  636    637   
        let expected_output = crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsOutput::builder()
  637    638   
            .set_dense_set_map(::std::option::Option::Some({
  638    639   
                let mut ret = ::std::collections::HashMap::new();
  639    640   
                ret.insert("x".to_owned(), vec![]);
  640    641   
                ret.insert("y".to_owned(), vec!["a".to_owned(), "b".to_owned()]);
  641    642   
                ret
  642    643   
            }))
  643    644   
            .build();
  644    645   
        let mut http_response = ::aws_smithy_runtime_api::http::Response::try_from(

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_blob_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_blob_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::Blob>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<::aws_smithy_types::Blob>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::Blob>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.blob()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_boolean_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_boolean_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<bool>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<bool>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<bool>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.boolean()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_dense_boolean_map.rs

@@ -1,1 +43,45 @@
    2      2   
pub(crate) fn de_dense_boolean_map(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, bool>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn pair(
    6      6   
        mut map: ::std::collections::HashMap<::std::string::String, bool>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, bool>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let key = decoder.string()?;
   10     10   
        let value = match decoder.datatype()? {
   11     11   
            ::aws_smithy_cbor::data::Type::Null => {
   12         -
                decoder.null()?;
   13         -
                return ::std::result::Result::Ok(map);
          12  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          13  +
                    "dense map cannot contain null values",
          14  +
                    decoder.position(),
          15  +
                ))
   14     16   
            }
   15     17   
            _ => decoder.boolean()?,
   16     18   
        };
   17     19   
        map.insert(key, value);
   18     20   
        Ok(map)
   19     21   
    }
   20     22   
   21     23   
    let mut map = ::std::collections::HashMap::new();
   22     24   
   23     25   
    match decoder.map()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_dense_number_map.rs

@@ -1,1 +43,45 @@
    2      2   
pub(crate) fn de_dense_number_map(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, i32>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn pair(
    6      6   
        mut map: ::std::collections::HashMap<::std::string::String, i32>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, i32>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let key = decoder.string()?;
   10     10   
        let value = match decoder.datatype()? {
   11     11   
            ::aws_smithy_cbor::data::Type::Null => {
   12         -
                decoder.null()?;
   13         -
                return ::std::result::Result::Ok(map);
          12  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          13  +
                    "dense map cannot contain null values",
          14  +
                    decoder.position(),
          15  +
                ))
   14     16   
            }
   15     17   
            _ => decoder.integer()?,
   16     18   
        };
   17     19   
        map.insert(key, value);
   18     20   
        Ok(map)
   19     21   
    }
   20     22   
   21     23   
    let mut map = ::std::collections::HashMap::new();
   22     24   
   23     25   
    match decoder.map()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_dense_set_map.rs

@@ -1,1 +49,51 @@
    8      8   
    fn pair(
    9      9   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
   10     10   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
   13     13   
        ::aws_smithy_cbor::decode::DeserializeError,
   14     14   
    > {
   15     15   
        let key = decoder.string()?;
   16     16   
        let value = match decoder.datatype()? {
   17     17   
            ::aws_smithy_cbor::data::Type::Null => {
   18         -
                decoder.null()?;
   19         -
                return ::std::result::Result::Ok(map);
          18  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          19  +
                    "dense map cannot contain null values",
          20  +
                    decoder.position(),
          21  +
                ))
   20     22   
            }
   21     23   
            _ => crate::protocol_serde::shape_string_set::de_string_set(decoder)?,
   22     24   
        };
   23     25   
        map.insert(key, value);
   24     26   
        Ok(map)
   25     27   
    }
   26     28   
   27     29   
    let mut map = ::std::collections::HashMap::new();
   28     30   
   29     31   
    match decoder.map()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_dense_string_map.rs

@@ -1,1 +44,46 @@
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, ::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn pair(
    6      6   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, ::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError>
    9      9   
    {
   10     10   
        let key = decoder.string()?;
   11     11   
        let value = match decoder.datatype()? {
   12     12   
            ::aws_smithy_cbor::data::Type::Null => {
   13         -
                decoder.null()?;
   14         -
                return ::std::result::Result::Ok(map);
          13  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          14  +
                    "dense map cannot contain null values",
          15  +
                    decoder.position(),
          16  +
                ))
   15     17   
            }
   16     18   
            _ => decoder.string()?,
   17     19   
        };
   18     20   
        map.insert(key, value);
   19     21   
        Ok(map)
   20     22   
    }
   21     23   
   22     24   
    let mut map = ::std::collections::HashMap::new();
   23     25   
   24     26   
    match decoder.map()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_dense_struct_map.rs

@@ -1,1 +49,51 @@
    8      8   
    fn pair(
    9      9   
        mut map: ::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>,
   10     10   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        ::std::collections::HashMap<::std::string::String, crate::types::GreetingStruct>,
   13     13   
        ::aws_smithy_cbor::decode::DeserializeError,
   14     14   
    > {
   15     15   
        let key = decoder.string()?;
   16     16   
        let value = match decoder.datatype()? {
   17     17   
            ::aws_smithy_cbor::data::Type::Null => {
   18         -
                decoder.null()?;
   19         -
                return ::std::result::Result::Ok(map);
          18  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          19  +
                    "dense map cannot contain null values",
          20  +
                    decoder.position(),
          21  +
                ))
   20     22   
            }
   21     23   
            _ => crate::protocol_serde::shape_greeting_struct::de_greeting_struct(decoder)?,
   22     24   
        };
   23     25   
        map.insert(key, value);
   24     26   
        Ok(map)
   25     27   
    }
   26     28   
   27     29   
    let mut map = ::std::collections::HashMap::new();
   28     30   
   29     31   
    match decoder.map()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_foo_enum_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_foo_enum_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<crate::types::FooEnum>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<crate::types::FooEnum>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<crate::types::FooEnum>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.string().map(|s| crate::types::FooEnum::from(s.as_ref()))?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_integer_enum_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_integer_enum_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<i32>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<i32>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<i32>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.integer()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_integer_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_integer_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<i32>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<i32>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<i32>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.integer()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_nested_string_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_nested_string_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<::std::vec::Vec<::std::string::String>>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<::std::vec::Vec<::std::string::String>>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<::std::vec::Vec<::std::string::String>>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => crate::protocol_serde::shape_string_list::de_string_list(decoder)?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_string_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_string_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<::std::string::String>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.string()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_string_set.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_string_set(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<::std::string::String>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.string()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_structure_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_structure_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<crate::types::StructureListMember>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<crate::types::StructureListMember>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<crate::types::StructureListMember>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => crate::protocol_serde::shape_structure_list_member::de_structure_list_member(decoder)?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_test_string_list.rs

@@ -1,1 +42,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub(crate) fn de_test_string_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<::std::string::String>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    9      9   
        let value = match decoder.datatype()? {
   10     10   
            ::aws_smithy_cbor::data::Type::Null => {
   11         -
                decoder.null()?;
   12         -
                return ::std::result::Result::Ok(list);
          11  +
                return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
          12  +
                    "dense list cannot contain null values",
          13  +
                    decoder.position(),
          14  +
                ))
   13     15   
            }
   14     16   
            _ => decoder.string()?,
   15     17   
        };
   16     18   
        list.push(value);
   17     19   
        Ok(list)
   18     20   
    }
   19     21   
   20     22   
    let mut list = ::std::vec::Vec::new();
   21     23   
   22     24   
    match decoder.list()? {