File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ run-local: stop build
10
10
stop :
11
11
docker kill $(CONTAINER_NAME ) ; true
12
12
13
+ test :
14
+ go test -v ./...
15
+
13
16
lint :
14
17
go vet ./...
15
18
go run honnef.co/go/tools/cmd/staticcheck@latest ./...
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ type integrationTypeChecker struct {
44
44
// 'http_method' parameter has event of API Gateway REST API mode and ALB target group mode.
45
45
// However, ALB target group mode has not 'resource' parameter.
46
46
HTTPMethod * string `json:"httpMethod"`
47
+ // Headers parameters has all API HTTP event.
48
+ RawPath * string `json:"rawPath"`
47
49
48
50
RequestContext struct {
49
51
// 'connectionID' parameter nly has API Gateway Websocket mode event.
@@ -62,7 +64,7 @@ func (t integrationTypeChecker) IntegrationType() LambdaIntegrationType {
62
64
if t .RequestContext .ConnectionID != nil {
63
65
return APIGatewayWebsocketIntegration
64
66
}
65
- if t .Version != nil {
67
+ if t .Version != nil && t . RawPath != nil {
66
68
if t .RouteKey == "$default" && t .PathParameters == nil {
67
69
return LambdaFunctionURLIntegration
68
70
}
You can’t perform that action at this time.
0 commit comments