Skip to content

BUG APIGatewayCustomAuthorizerResponse event context cant be interface #480

Open
@tharun-d

Description

@tharun-d

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtype/eventsissue or feature request related to the events packagetype/ux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions