Skip to content

Commit b9f617c

Browse files
authored
Omit CodePipelineEventDetailType when it's missing in the payload
The examples in testdata don't include this field, so I'm guessing it's optional.
1 parent e7ef344 commit b9f617c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/codepipeline_cloudwatch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type CodePipelineEventDetail struct {
9292

9393
Region string `json:"region"`
9494

95-
Type CodePipelineEventDetailType `json:"type"`
95+
Type CodePipelineEventDetailType `json:"type,omitempty"`
9696
}
9797

9898
type CodePipelineEventDetailType struct {

0 commit comments

Comments
 (0)