Skip to content
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

Added alwaysInheritAuthentication option to v2 #728

Merged

Conversation

SahilChoudhary22
Copy link
Contributor

Description

A big Thanks to @AndrewGuenther for raising the above mentioned PR!

@@ -2647,7 +2647,12 @@ module.exports = {
}

// handling authentication here (for http type only)
authHelper = this.getAuthHelper(openapi, operation.security);
if (options.alwaysInheritAuthentication) {
authHelper = this.getAuthHelper(openapi, openapi.security);
Copy link
Member

@VShingala VShingala Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SahilChoudhary22 In case when this is true, should we simply be using auth as Inherit from parent rather than defining it the same as parents? i.e. Value of authHelper should be undefined same as what's done in v2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VShingala Correct! Asked the same doubt from user on the parent PR. Missed it in this PR. Have fixed with the following commit - a942449

lib/schemaUtils.js Outdated Show resolved Hide resolved
@SahilChoudhary22 SahilChoudhary22 merged commit 46ed506 into develop Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set the default Authorization Type to 'Inherit from Parent'
2 participants