Skip to content

Use sets for OpenAPI security settings#687

Merged
kstich merged 1 commit intomainfrom
consolidate_duplicate_security
Jan 12, 2021
Merged

Use sets for OpenAPI security settings#687
kstich merged 1 commit intomainfrom
consolidate_duplicate_security

Conversation

@kstich
Copy link
Copy Markdown
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