aws / aws/aws-lambda-go

BUG APIGatewayCustomAuthorizerResponse event context cant be interface

Open
#480 3 comments 0 reactions 0 assignees View on GitHub
bug type/events type/ux
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

Hi Team,

APIGatewayCustomAuthorizerResponse has some thing called
Context map[string]interface{} `json:"context,omitempty"`

but atually it should be map[string]string only strings are accepted,
More documentation: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html

so it will not create any confusion if we change this to string,
If not I tried to send some json model which throws errors

Even the example is wrong:
https://github.com/aws/aws-lambda-go/blob/main/events/README_ApiGatewayCustomAuthorizer.md,
we cant send boolean or numbers also

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.