81
81
pub account_id : Option < String > ,
82
82
#[ serde( default ) ]
83
83
pub resource_id : Option < String > ,
84
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
84
85
pub operation_name : Option < String > ,
85
86
#[ serde( default ) ]
86
87
pub stage : Option < String > ,
@@ -125,6 +126,7 @@ pub struct ApiGatewayV2httpRequest {
125
126
pub raw_path : Option < String > ,
126
127
#[ serde( default ) ]
127
128
pub raw_query_string : Option < String > ,
129
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
128
130
pub cookies : Option < Vec < String > > ,
129
131
#[ serde( deserialize_with = "deserialize_headers" , default ) ]
130
132
#[ serde( serialize_with = "serialize_headers" ) ]
@@ -133,14 +135,17 @@ pub struct ApiGatewayV2httpRequest {
133
135
default ,
134
136
deserialize_with = "query_map::serde::aws_api_gateway_v2::deserialize_empty"
135
137
) ]
138
+ #[ serde( skip_serializing_if = "QueryMap::is_empty" ) ]
136
139
pub query_string_parameters : QueryMap ,
137
140
#[ serde( deserialize_with = "deserialize_lambda_map" ) ]
138
141
#[ serde( default ) ]
142
+ #[ serde( skip_serializing_if = "HashMap::is_empty" ) ]
139
143
pub path_parameters : HashMap < String , String > ,
140
144
pub request_context : ApiGatewayV2httpRequestContext ,
141
145
#[ serde( deserialize_with = "deserialize_lambda_map" ) ]
142
146
#[ serde( default ) ]
143
147
pub stage_variables : HashMap < String , String > ,
148
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
144
149
pub body : Option < String > ,
145
150
#[ serde( default ) ]
146
151
pub is_base64_encoded : bool ,
@@ -163,6 +168,7 @@ where
163
168
#[ serde( default ) ]
164
169
pub request_id : Option < String > ,
165
170
#[ serde( bound = "" , default ) ]
171
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
166
172
pub authorizer : Option < ApiGatewayV2httpRequestContextAuthorizerDescription < T1 > > ,
167
173
/// The API Gateway HTTP API Id
168
174
#[ serde( default ) ]
@@ -176,6 +182,7 @@ where
176
182
pub time : Option < String > ,
177
183
pub time_epoch : i64 ,
178
184
pub http : ApiGatewayV2httpRequestContextHttpDescription ,
185
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
179
186
pub authentication : Option < ApiGatewayV2httpRequestContextAuthentication > ,
180
187
}
181
188
@@ -187,11 +194,14 @@ where
187
194
T1 : DeserializeOwned ,
188
195
T1 : Serialize ,
189
196
{
197
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
190
198
pub jwt : Option < ApiGatewayV2httpRequestContextAuthorizerJwtDescription > ,
191
199
#[ serde( deserialize_with = "deserialize_lambda_map" ) ]
192
200
#[ serde( default ) ]
193
201
#[ serde( bound = "" ) ]
202
+ #[ serde( skip_serializing_if = "HashMap::is_empty" ) ]
194
203
pub lambda : HashMap < String , T1 > ,
204
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
195
205
pub iam : Option < ApiGatewayV2httpRequestContextAuthorizerIamDescription > ,
196
206
}
197
207
@@ -202,6 +212,7 @@ pub struct ApiGatewayV2httpRequestContextAuthorizerJwtDescription {
202
212
#[ serde( deserialize_with = "deserialize_lambda_map" ) ]
203
213
#[ serde( default ) ]
204
214
pub claims : HashMap < String , String > ,
215
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
205
216
pub scopes : Option < Vec < String > > ,
206
217
}
207
218
@@ -215,6 +226,7 @@ pub struct ApiGatewayV2httpRequestContextAuthorizerIamDescription {
215
226
pub account_id : Option < String > ,
216
227
#[ serde( default ) ]
217
228
pub caller_id : Option < String > ,
229
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
218
230
pub cognito_identity : Option < ApiGatewayV2httpRequestContextAuthorizerCognitoIdentity > ,
219
231
#[ serde( default ) ]
220
232
pub principal_org_id : Option < String > ,
0 commit comments