Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

TypeError: Cannot set property 'identitySource' of undefined #1

Open
jpswade opened this issue May 26, 2017 · 1 comment
Open

TypeError: Cannot set property 'identitySource' of undefined #1

jpswade opened this issue May 26, 2017 · 1 comment

Comments

@jpswade
Copy link

jpswade commented May 26, 2017

/usr/local/lib/node_modules/swagger2tf/index.js:103
    authorizer.identitySource = `${definition.in}.${definition.name}`;
                              ^

TypeError: Cannot set property 'identitySource' of undefined
    at EventEmitter.runParser (/usr/local/lib/node_modules/swagger2tf/index.js:103:31)
    at Timer.listOnTimeout (timers.js:92:15)
@lintaonz
Copy link

I got the same issue because swagger2tf doesn't support aws_api_gateway_api_key.

securityDefinitions:
api_key:
type: "apiKey"
name: "x-api-key"
in: "header"

And this is not a easy fix because you need to define usage plan and stage with the api-key.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants