Skip to content

Commit b2451e9

Browse files
authored
fix: Makes two properties optional on MigrateUserResponse. (#663)
1 parent fdc4714 commit b2451e9

File tree

1 file changed

+3
-1
lines changed
  • lambda-events/src/event/cognito

1 file changed

+3
-1
lines changed

lambda-events/src/event/cognito/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ pub struct CognitoEventUserPoolsMigrateUserResponse {
254254
pub final_user_status: Option<String>,
255255
#[serde(default)]
256256
pub message_action: Option<String>,
257-
pub desired_delivery_mediums: Vec<String>,
257+
#[serde(default)]
258+
pub desired_delivery_mediums: Option<Vec<String>>,
259+
#[serde(default, deserialize_with = "deserialize_nullish_boolean")]
258260
pub force_alias_creation: bool,
259261
}
260262

0 commit comments

Comments
 (0)