Skip to content

Commit 3afc312

Browse files
authored
Omit CodePipelineEventDetailType when it's missing in the payload (#427)
1 parent 507ad66 commit 3afc312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/codepipeline_cloudwatch.go

+1-1
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)