Skip to content

Commit 4145757

Browse files
authored
Mark HTTP v2 JWT scopes as omitempty (#320)
1 parent 55dc88b commit 4145757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/apigw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type APIGatewayV2HTTPRequestContextAuthorizerDescription struct {
8686
// APIGatewayV2HTTPRequestContextAuthorizerJWTDescription contains JWT authorizer information for the request context.
8787
type APIGatewayV2HTTPRequestContextAuthorizerJWTDescription struct {
8888
Claims map[string]string `json:"claims"`
89-
Scopes []string `json:"scopes"`
89+
Scopes []string `json:"scopes,omitempty"`
9090
}
9191

9292
// APIGatewayV2HTTPRequestContextHTTPDescription contains HTTP information for the request context.

0 commit comments

Comments
 (0)