BUG APIGatewayCustomAuthorizerResponse event context cant be interface
Open
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
Assessment
This issue has not been assessed yet.