From e12c71191d7731cc2ccdff8e709846fb6007b428 Mon Sep 17 00:00:00 2001 From: Florian Nagel Date: Fri, 15 Mar 2019 19:39:14 +0100 Subject: [PATCH] Fix dmarcPolicy typing #126 (#165) --- events/ses.go | 2 +- events/testdata/ses-event.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/events/ses.go b/events/ses.go index b665ce1e..793b448e 100644 --- a/events/ses.go +++ b/events/ses.go @@ -34,7 +34,7 @@ type SimpleEmailReceipt struct { SpamVerdict SimpleEmailVerdict `json:"spamVerdict"` DKIMVerdict SimpleEmailVerdict `json:"dkimVerdict"` DMARCVerdict SimpleEmailVerdict `json:"dmarcVerdict"` - DMARCPolicy SimpleEmailVerdict `json:"dmarcPolicy"` + DMARCPolicy string `json:"dmarcPolicy"` SPFVerdict SimpleEmailVerdict `json:"spfVerdict"` VirusVerdict SimpleEmailVerdict `json:"virusVerdict"` Action SimpleEmailReceiptAction `json:"action"` diff --git a/events/testdata/ses-event.json b/events/testdata/ses-event.json index 46baf6e4..3f24b5e3 100644 --- a/events/testdata/ses-event.json +++ b/events/testdata/ses-event.json @@ -80,9 +80,7 @@ "dmarcVerdict": { "status": "PASS" }, - "dmarcPolicy": { - "status": "REJECT" - }, + "dmarcPolicy": "reject", "processingTimeMillis": 574, "action": { "type": "Lambda",