Skip to content

Commit 831d3bf

Browse files
committed
change RequestContext Authorizer to a map[string]interface{}
1 parent b1d5f35 commit 831d3bf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

internal/proxy/event.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ type Identity struct {
1818

1919
// RequestContext is the contextual information provided by API Gateway.
2020
type RequestContext struct {
21-
APIID string `json:"apiId"`
22-
ResourceID string `json:"resourceId"`
23-
RequestID string `json:"requestId"`
24-
HTTPMethod string `json:"-"`
25-
ResourcePath string `json:"-"`
26-
AccountID string `json:"accountId"`
27-
Stage string `json:"stage"`
28-
Identity Identity `json:"identity"`
29-
Authorizer map[string]string `json:"authorizer"`
21+
APIID string `json:"apiId"`
22+
ResourceID string `json:"resourceId"`
23+
RequestID string `json:"requestId"`
24+
HTTPMethod string `json:"-"`
25+
ResourcePath string `json:"-"`
26+
AccountID string `json:"accountId"`
27+
Stage string `json:"stage"`
28+
Identity Identity `json:"identity"`
29+
Authorizer map[string]interface{} `json:"authorizer"`
3030
}
3131

3232
// Input is the input provided by API Gateway.

0 commit comments

Comments
 (0)