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

Use sets for OpenAPI security settings #687

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Jan 11, 2021

This commit updates the OpenAPI document and Operation object builders
to use sets for storing their security settings instead of lists. Each
entry in these collections can be safely made unique, as duplicates would
represent an "A or A" posture. Having multiple entries can cause issues
with consuming the output document.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit updates the OpenAPI document and Operation object builders
to use sets for storing their security settings instead of lists. Each
entry in these collections can be safely made unique, as duplicates would
represent an "A or A" posture. Having multiple entries can cause issues
with consuming the output document.
@kstich kstich requested a review from srchase January 11, 2021 23:06
@kstich kstich merged commit dc9eb9f into main Jan 12, 2021
@kstich kstich deleted the consolidate_duplicate_security branch January 12, 2021 16:54
@kstich kstich mentioned this pull request Feb 22, 2021
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.

2 participants