New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrected security definition #101
Conversation
Previous implementation would only check the security definition on the route. This change also checks the global api security definitions.
Fixes #96 |
Thanks for finding this! I really appreciate it. ...Is there any chance I could convince you to write a test for it? :) |
@theganyo I looked in to testing for this and am a little concerned about where to make the correction. Currently testing for similar concerns is handled in test/lib/common.js My current approach was to put it in test/index.js, where it doesn't really match the concern but where creating/using new swagger specs make more sense. Currently the test is as follows:
With a valid, but truncated swagger json in the same file. |
I agree... Don't change the existing tests. You may create a new file for this test or integrate it into an existing file as you feel appropriate. |
Test added |
Thank you! |
Any ETA for a new version that includes this fix? |
Sorry, but it will have to be a couple weeks as I'm going on vacation tomorrow and I don't want to release just before vacation. |
Previous implementation would only check the security definition on the route. This change also checks the global api security definitions.