Skip to content

Draft for Appsync Events module described in issue #940 #944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Rename AppSyncEventSubscribeErrorDescription to `AppSyncEventErrorD…
…escription`
  • Loading branch information
nicklaswj committed Nov 21, 2024
commit dce7327ce2dbdbe69055c6eef14ffe1ba25ac6f4
4 changes: 2 additions & 2 deletions lambda-events/src/event/appsync_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ pub struct AppSyncEventsSubscribeSuccessMessage {
pub struct AppSyncEventsErrorMessage {
pub id: Option<String>,
#[serde(default)]
pub errors: Option<Vec<AppSyncEventSubscribeErrorDescription>>,
pub errors: Option<Vec<AppSyncEventErrorDescription>>,
}

/// `AppSyncEventSubscribeErrorDescription` contains information about an error.
#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct AppSyncEventSubscribeErrorDescription {
pub struct AppSyncEventErrorDescription {
#[serde(default)]
pub error_type: Option<String>,
#[serde(default)]
Expand Down