Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make the oauth2 scope checkbox id more unique. #2949

Merged

Conversation

stefangr
Copy link
Contributor

If the swagger.json defines more than one oauth2 Security scheme with
matching scopes, the id of the scope checkboxes were not unique.
As a result the scope for a second security scheme could not be
selected.

By adding the security scheme name to the id, it becomes more unique.

@stefangr stefangr changed the title Make the checkbox id more unique. Make the oauth2 scope checkbox id more unique. Apr 21, 2017
@webron webron requested a review from bodnia April 21, 2017 08:59
@bodnia
Copy link
Contributor

bodnia commented May 4, 2017

@stefangr thanks for contribution. Could you please update branch to latest master and I'll merge

If the swagger.json defines more than one oauth2 Security scheme with
matching scopes, the id of the scope checkboxes were not unique.
As a result the scope for a second security scheme could not be
selected.

By adding the security scheme name to the id, it becomes more unique.
@stefangr stefangr force-pushed the fix_oauth2_scope_checkbox_uniqueness branch from c7de172 to 073eff4 Compare May 4, 2017 07:39
@stefangr
Copy link
Contributor Author

stefangr commented May 4, 2017

@bodnia The branch is updated.

@bodnia bodnia merged commit 4f0cf53 into swagger-api:master May 4, 2017
@bodnia
Copy link
Contributor

bodnia commented May 4, 2017

@stefangr thank you for your cooperation!

@stefangr stefangr deleted the fix_oauth2_scope_checkbox_uniqueness branch May 4, 2017 09:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants