Skip to content

Commit a8fbffb

Browse files
committed
Revert field type change
1 parent 5cdae93 commit a8fbffb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

events/apigw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ type APIGatewayWebsocketProxyRequest struct {
161161
StageVariables map[string]string `json:"stageVariables,omitempty"`
162162
RequestContext APIGatewayWebsocketProxyRequestContext `json:"requestContext"`
163163
Body string `json:"body,omitempty"`
164-
IsBase64Encoded *bool `json:"isBase64Encoded,omitempty"`
164+
IsBase64Encoded bool `json:"isBase64Encoded"`
165165
}
166166

167167
// APIGatewayWebsocketProxyRequestContext contains the information to identify

events/testdata/apigw-websocket-request.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,6 @@
102102
"routeKey": "$connect",
103103
"status": "*"
104104
},
105-
"body": "{\r\n\t\"a\": 1\r\n}"
105+
"body": "{\r\n\t\"a\": 1\r\n}",
106+
"isBase64Encoded": false
106107
}

0 commit comments

Comments
 (0)