Skip to content

Commit e573267

Browse files
author
Nghĩa Nguyễn Ngọc
committed
docs: improve Version field comment in CodePipelineEventDetail
1 parent 17230ee commit e573267

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

events/codepipeline_cloudwatch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ type CodePipelineEventBridgeEvent = CodePipelineCloudWatchEvent
8080
type CodePipelineEventDetail struct {
8181
Pipeline string `json:"pipeline"`
8282

83-
// Version is numeric. AWS may send integer (1) or float (2.0) depending on the event.
84-
// json.Number preserves the raw value and allows callers to convert as needed.
83+
// Version is the pipeline version number. AWS may send this as an integer (e.g. 1)
84+
// or a float (e.g. 2.0). Use Version.Int64() or Version.Float64() to extract the value.
8585
Version json.Number `json:"version"`
8686

8787
ExecutionID string `json:"execution-id"`

0 commit comments

Comments
 (0)