Skip to content

Commit

Permalink
Add serde attribute skip_serializing_if = "Option::is_none" on `App…
Browse files Browse the repository at this point in the history
…SyncEventsErrorMessage::errors`
  • Loading branch information
nicklaswj committed Nov 21, 2024
1 parent dce7327 commit 629364c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda-events/src/event/appsync_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub struct AppSyncEventsSubscribeSuccessMessage {
#[serde(rename_all = "camelCase")]
pub struct AppSyncEventsErrorMessage {
pub id: Option<String>,
#[serde(default)]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub errors: Option<Vec<AppSyncEventErrorDescription>>,
}

Expand Down

0 comments on commit 629364c

Please sign in to comment.