Client Test

Client Test

rev. a1890211e68661be8832f65fb372ed8e4c61947d (ignoring whitespace)

Files changed:

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()? {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_test_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_timestamp_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_timestamp_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::DateTime>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<::aws_smithy_types::DateTime>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::DateTime>, ::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.timestamp()?,
   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_validation_exception_field_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_validation_exception_field_list(
    3      3   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      4   
) -> ::std::result::Result<::std::vec::Vec<crate::types::ValidationExceptionField>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      5   
    fn member(
    6      6   
        mut list: ::std::vec::Vec<crate::types::ValidationExceptionField>,
    7      7   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      8   
    ) -> ::std::result::Result<::std::vec::Vec<crate::types::ValidationExceptionField>, ::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_validation_exception_field::de_validation_exception_field(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()? {