diff --git a/aws/sdk/build/aws-sdk/config/src/json_deser.rs b/aws/sdk/build/aws-sdk/config/src/json_deser.rs index aa694574..bd96e262 100644 --- a/aws/sdk/build/aws-sdk/config/src/json_deser.rs +++ b/aws/sdk/build/aws-sdk/config/src/json_deser.rs @@ -5019,9 +5019,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5058,9 +5063,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5096,9 +5106,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5134,9 +5149,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5174,9 +5194,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5215,9 +5240,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5255,9 +5285,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5294,9 +5329,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5333,9 +5373,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5372,9 +5417,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5410,9 +5460,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5448,9 +5503,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5487,9 +5547,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5526,9 +5591,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5565,9 +5635,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5606,9 +5681,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5647,9 +5727,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5686,9 +5771,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5724,9 +5814,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5762,9 +5857,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5801,9 +5901,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5840,9 +5945,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5881,9 +5991,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5922,9 +6037,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5962,9 +6082,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6001,9 +6126,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6040,9 +6170,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6079,9 +6214,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6120,9 +6260,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6159,9 +6304,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6198,9 +6348,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6237,9 +6392,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6277,9 +6437,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6312,11 +6477,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigurationItem::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6501,9 +6671,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6535,11 +6710,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ComplianceSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6593,9 +6773,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6634,9 +6819,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6675,9 +6865,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6713,9 +6908,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6748,9 +6948,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6787,9 +6992,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6824,9 +7034,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6858,11 +7073,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::StoredQuery::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6943,9 +7163,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6981,9 +7206,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7016,9 +7246,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7052,9 +7287,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7086,11 +7326,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregationAuthorization::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7157,11 +7402,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigurationAggregator::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7249,9 +7499,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7287,9 +7542,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7326,9 +7586,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7363,11 +7628,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RetentionConfiguration::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7417,9 +7687,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7454,11 +7729,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::QueryInfo::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7495,11 +7775,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BaseConfigurationItem::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7660,11 +7945,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateResourceIdentifier::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7744,11 +8034,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ResourceKey::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7804,11 +8099,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::FailedDeleteRemediationExceptionsBatch::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7854,11 +8154,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateComplianceByConfigRule::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7925,11 +8230,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateComplianceByConformancePack::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7993,11 +8303,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ComplianceByConfigRule::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8043,11 +8358,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ComplianceByResource::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8102,11 +8422,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigRuleEvaluationStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8238,11 +8563,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigRule::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8364,11 +8694,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregatedSourceStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8472,11 +8807,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigurationRecorder::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8531,11 +8871,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigurationRecorderStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8637,11 +8982,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConformancePackRuleCompliance::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8702,11 +9052,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConformancePackDetail::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8805,11 +9160,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConformancePackStatusDetail::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8915,11 +9275,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::DeliveryChannel::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9001,11 +9366,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::DeliveryChannelStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9067,11 +9437,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationConfigRule::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9144,11 +9519,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationConfigRuleStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9228,11 +9608,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationConformancePack::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9318,11 +9703,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationConformancePackStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9404,11 +9794,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::PendingAggregationRequest::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9458,11 +9853,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RemediationConfiguration::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9594,11 +9994,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RemediationException::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9674,11 +10079,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RemediationExecutionStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9753,11 +10163,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateEvaluationResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9849,11 +10264,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateComplianceCount::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9902,11 +10322,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateConformancePackComplianceSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9952,11 +10377,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GroupedResourceCount::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10009,9 +10439,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -10050,9 +10485,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -10088,9 +10528,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -10126,9 +10571,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -10166,11 +10616,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::EvaluationResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10253,11 +10708,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ComplianceContributorCount::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10304,11 +10764,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ComplianceSummaryByResourceType::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10354,11 +10819,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConformancePackEvaluationResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10435,11 +10905,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConformancePackComplianceSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10495,11 +10970,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ResourceCount::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10551,11 +11031,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MemberAccountStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10647,11 +11132,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationConformancePackDetailedStatus::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10742,11 +11232,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ResourceIdentifier::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10816,11 +11311,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::StoredQueryMetadata::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10888,11 +11388,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Tag::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -10946,9 +11451,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -10981,11 +11491,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationAggregationSource::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11038,11 +11553,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Evaluation::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11121,11 +11641,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::FailedRemediationBatch::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11173,11 +11698,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::FailedRemediationExceptionBatch::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11224,9 +11754,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -11262,9 +11797,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -11299,11 +11839,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Compliance::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11352,11 +11897,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateConformancePackCompliance::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11427,11 +11977,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Scope::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11497,11 +12052,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Source::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11559,11 +12119,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RecordingGroup::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11615,9 +12180,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -11656,9 +12226,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -11693,11 +12268,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigSnapshotDeliveryProperties::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11744,11 +12324,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigExportDeliveryInfo::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11834,11 +12419,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConfigStreamDeliveryInfo::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -11908,11 +12498,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationManagedRuleMetadata::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12018,11 +12613,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::OrganizationCustomRuleMetadata::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12134,9 +12734,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12175,9 +12780,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -12213,11 +12823,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ExecutionControls::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12258,9 +12873,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12293,11 +12913,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::EvaluationResultIdentifier::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12347,11 +12972,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AggregateConformancePackComplianceCount::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12399,11 +13029,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Relationship::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12474,11 +13109,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AccountAggregationSource::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12528,9 +13168,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12565,11 +13210,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::FieldInfo::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12610,11 +13260,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RemediationExceptionResourceKey::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12665,9 +13320,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12703,9 +13363,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12738,9 +13403,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12778,11 +13448,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConformancePackInputParameter::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12833,9 +13508,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12874,9 +13554,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -12917,11 +13602,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RemediationParameterValue::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -12963,11 +13653,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::SsmControls::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -13015,11 +13710,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RemediationExecutionStep::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -13100,11 +13800,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::EvaluationResultQualifier::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -13164,9 +13869,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -13201,11 +13911,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::SourceDetail::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -13276,11 +13991,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ResourceValue::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -13325,11 +14045,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::StaticValue::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -13367,9 +14092,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { diff --git a/aws/sdk/build/aws-sdk/dynamodb/src/json_deser.rs b/aws/sdk/build/aws-sdk/dynamodb/src/json_deser.rs index be2b4acf..ef1fe422 100644 --- a/aws/sdk/build/aws-sdk/dynamodb/src/json_deser.rs +++ b/aws/sdk/build/aws-sdk/dynamodb/src/json_deser.rs @@ -3338,9 +3338,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3384,9 +3389,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -3425,9 +3435,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -3463,9 +3478,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3503,9 +3523,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -3549,9 +3574,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -3587,11 +3617,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BackupDetails::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3689,11 +3724,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GlobalTableDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3769,11 +3809,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::TableDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3954,11 +3999,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BackupDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4011,9 +4061,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -4048,11 +4103,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ConsumedCapacity::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4136,11 +4196,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ItemCollectionMetrics::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4184,11 +4249,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ContinuousBackupsDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4239,9 +4309,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4276,11 +4351,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::FailureException::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4331,9 +4411,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4365,11 +4450,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ExportDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4580,9 +4670,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4621,9 +4716,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4658,11 +4758,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::TableAutoScalingDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4720,11 +4825,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::TimeToLiveDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -4784,9 +4894,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4819,9 +4934,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4854,9 +4974,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4889,9 +5014,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4927,9 +5057,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -4965,9 +5100,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5000,9 +5140,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5035,9 +5180,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5073,9 +5223,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5111,9 +5266,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -5148,11 +5308,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::TimeToLiveSpecification::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5200,11 +5365,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BatchStatementResponse::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5256,11 +5426,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::KeysAndAttributes::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5325,9 +5500,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5363,9 +5543,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5399,9 +5584,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5434,9 +5624,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5470,9 +5665,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5504,11 +5704,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ProvisionedThroughputDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5580,11 +5785,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BillingModeSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5640,9 +5850,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5681,9 +5896,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -5718,11 +5938,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::StreamSpecification::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5773,11 +5998,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::RestoreSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5842,11 +6072,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::SseDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5919,11 +6154,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ArchivalSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -5981,11 +6221,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::SourceTableDetails::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6092,11 +6337,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::SourceTableFeatureDetails::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6266,11 +6516,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Capacity::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6330,9 +6585,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -6371,9 +6631,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -6409,9 +6674,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6445,11 +6715,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::PointInTimeRecoveryDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6512,11 +6787,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Endpoint::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6565,11 +6845,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ReplicaSettingsDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6660,11 +6945,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::KinesisDataStreamDestination::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6731,9 +7021,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -6768,11 +7063,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::CancellationReason::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6826,11 +7126,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ItemResponse::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6866,11 +7171,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BackupSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -6995,11 +7305,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ContributorInsightsSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7064,11 +7379,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ExportSummary::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7121,11 +7441,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GlobalTable::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7171,11 +7496,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Tag::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7225,11 +7555,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::BatchStatementError::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7291,9 +7626,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7326,9 +7666,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7367,9 +7712,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -7407,11 +7757,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::WriteRequest::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7453,11 +7808,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ReplicaDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7555,11 +7915,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AttributeDefinition::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7613,11 +7978,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::KeySchemaElement::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7670,11 +8040,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::LocalSecondaryIndexDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7750,11 +8125,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GlobalSecondaryIndexDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7854,11 +8234,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ProvisionedThroughput::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -7910,9 +8295,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7949,9 +8339,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -7985,9 +8380,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8023,9 +8423,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8061,9 +8466,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8100,9 +8510,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -8138,9 +8553,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8172,11 +8592,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AutoScalingSettingsDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8249,9 +8674,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8285,11 +8715,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ReplicaAutoScalingDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8358,9 +8793,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8392,11 +8832,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::PutRequest::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8435,11 +8880,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::DeleteRequest::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8475,11 +8925,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ProvisionedThroughputOverride::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8523,9 +8978,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8559,11 +9019,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Projection::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8614,11 +9079,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::LocalSecondaryIndexInfo::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8669,11 +9139,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GlobalSecondaryIndexInfo::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8735,9 +9210,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8775,12 +9255,17 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ReplicaGlobalSecondaryIndexSettingsDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8863,9 +9348,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -8899,11 +9389,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Replica::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -8948,9 +9443,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { @@ -8988,11 +9488,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ReplicaGlobalSecondaryIndexDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9039,9 +9544,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -9076,11 +9586,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AutoScalingPolicyDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9129,12 +9644,17 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ReplicaGlobalSecondaryIndexAutoScalingDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -9203,10 +9723,15 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)]let mut builder = crate::model::AutoScalingTargetTrackingScalingPolicyConfigurationDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, diff --git a/aws/sdk/build/aws-sdk/kms/src/json_deser.rs b/aws/sdk/build/aws-sdk/kms/src/json_deser.rs index 37dfcf1d..6be3d91a 100644 --- a/aws/sdk/build/aws-sdk/kms/src/json_deser.rs +++ b/aws/sdk/build/aws-sdk/kms/src/json_deser.rs @@ -2766,11 +2766,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::KeyMetadata::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3013,9 +3018,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3054,9 +3064,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3099,9 +3114,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3141,9 +3161,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3176,9 +3201,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3211,9 +3241,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3249,9 +3284,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3284,9 +3324,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3318,11 +3363,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MultiRegionConfiguration::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3377,11 +3427,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::CustomKeyStoresListEntry::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3483,11 +3538,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AliasListEntry::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3562,11 +3622,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GrantListEntry::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3670,11 +3735,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::KeyListEntry::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3724,11 +3794,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Tag::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3778,11 +3853,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MultiRegionKey::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3833,9 +3913,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3868,9 +3953,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -3908,11 +3998,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::GrantConstraints::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -3958,9 +4053,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { + let _ = tokens.next(); let mut map = std::collections::HashMap::new(); loop { match tokens.next().transpose()? { diff --git a/aws/sdk/build/aws-sdk/polly/src/json_deser.rs b/aws/sdk/build/aws-sdk/polly/src/json_deser.rs index c5ae1924..88e95151 100644 --- a/aws/sdk/build/aws-sdk/polly/src/json_deser.rs +++ b/aws/sdk/build/aws-sdk/polly/src/json_deser.rs @@ -1120,9 +1120,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -1154,11 +1159,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Lexicon::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1208,11 +1218,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::LexiconAttributes::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1298,11 +1313,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::SynthesisTask::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1478,9 +1498,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -1513,9 +1538,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -1547,11 +1577,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Voice::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1648,9 +1683,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -1686,9 +1726,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -1726,11 +1771,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::LexiconDescription::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1777,9 +1827,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -1818,9 +1873,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { diff --git a/aws/sdk/build/aws-sdk/qldbsession/src/json_deser.rs b/aws/sdk/build/aws-sdk/qldbsession/src/json_deser.rs index a0f07199..8aacbfd8 100644 --- a/aws/sdk/build/aws-sdk/qldbsession/src/json_deser.rs +++ b/aws/sdk/build/aws-sdk/qldbsession/src/json_deser.rs @@ -336,11 +336,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::StartSessionResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -386,11 +391,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::StartTransactionResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -436,11 +446,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::EndSessionResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -477,11 +492,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::CommitTransactionResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -539,11 +559,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::AbortTransactionResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -580,11 +605,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ExecuteStatementResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -631,11 +661,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::FetchPageResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -681,11 +716,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::TimingInformation::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -725,11 +765,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::IoUsage::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -777,11 +822,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Page::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -828,9 +878,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -862,11 +917,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::ValueHolder::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, diff --git a/aws/sdk/build/aws-sdk/transcribestreaming/src/json_deser.rs b/aws/sdk/build/aws-sdk/transcribestreaming/src/json_deser.rs index 19bf9eef..6ffa69f7 100644 --- a/aws/sdk/build/aws-sdk/transcribestreaming/src/json_deser.rs +++ b/aws/sdk/build/aws-sdk/transcribestreaming/src/json_deser.rs @@ -257,11 +257,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MedicalTranscriptEvent::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -298,11 +303,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::TranscriptEvent::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -339,11 +349,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MedicalTranscript::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -380,11 +395,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Transcript::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -422,9 +442,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -457,9 +482,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -491,11 +521,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MedicalResult::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -573,11 +608,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Result::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -656,9 +696,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -691,9 +736,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -725,11 +775,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MedicalAlternative::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -780,11 +835,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Alternative::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -830,9 +890,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -865,9 +930,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -900,9 +970,14 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartArray { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartArray { .. })) => { + let _ = tokens.next(); let mut items = Vec::new(); loop { match tokens.peek() { @@ -934,11 +1009,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MedicalItem::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1024,11 +1104,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::MedicalEntity::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break, @@ -1102,11 +1187,16 @@ where Item = Result, smithy_json::deserialize::Error>, >, { - match tokens.next().transpose()? { - Some(smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), - Some(smithy_json::deserialize::Token::StartObject { .. }) => { + match tokens.peek() { + Some(Err(_)) => Err(tokens.next().unwrap().err().unwrap()), + Some(Ok(smithy_json::deserialize::Token::ValueNull { .. })) => { + let _ = tokens.next(); + Ok(None) + } + Some(Ok(smithy_json::deserialize::Token::StartObject { .. })) => { #[allow(unused_mut)] let mut builder = crate::model::Item::builder(); + smithy_json::deserialize::token::expect_start_object(tokens.next())?; loop { match tokens.next().transpose()? { Some(smithy_json::deserialize::Token::EndObject { .. }) => break,