diff --git a/lambda-events/src/event/appsync_events/mod.rs b/lambda-events/src/event/appsync_events/mod.rs index 890d7f75..f9682b33 100644 --- a/lambda-events/src/event/appsync_events/mod.rs +++ b/lambda-events/src/event/appsync_events/mod.rs @@ -132,7 +132,7 @@ pub struct AppSyncEventsSubscribeSuccessMessage { #[serde(rename_all = "camelCase")] pub struct AppSyncEventsErrorMessage { pub id: Option, - #[serde(default)] + #[serde(default, skip_serializing_if = "Option::is_none")] pub errors: Option>, }