Skip to content

Commit

Permalink
Revert field type change
Browse files Browse the repository at this point in the history
  • Loading branch information
kdnakt committed Jan 28, 2024
1 parent 5cdae93 commit a8fbffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion events/apigw.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ type APIGatewayWebsocketProxyRequest struct {
StageVariables map[string]string `json:"stageVariables,omitempty"`
RequestContext APIGatewayWebsocketProxyRequestContext `json:"requestContext"`
Body string `json:"body,omitempty"`
IsBase64Encoded *bool `json:"isBase64Encoded,omitempty"`
IsBase64Encoded bool `json:"isBase64Encoded"`
}

// APIGatewayWebsocketProxyRequestContext contains the information to identify
Expand Down
3 changes: 2 additions & 1 deletion events/testdata/apigw-websocket-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,6 @@
"routeKey": "$connect",
"status": "*"
},
"body": "{\r\n\t\"a\": 1\r\n}"
"body": "{\r\n\t\"a\": 1\r\n}",
"isBase64Encoded": false
}

0 comments on commit a8fbffb

Please sign in to comment.