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

fix: issue where a securityScheme may be corrupted with internal library data #627

Merged
merged 2 commits into from
Mar 24, 2022

Conversation

erunion
Copy link
Member

@erunion erunion commented Mar 23, 2022

🧰 Changes

This resolves an issue I discovered while working on readmeio/api#422 where if you called operation.prepareSecurity() and then ran OAS validation against the spec you ingested into oas validation would fail because operation.prepareSecurity() would append our internal security scheme name tracking information to a _key property.

Tests never caught this because they were asserting directly against the corrupted spec data. 🙃

@erunion erunion added the bug Something isn't working label Mar 23, 2022
@erunion erunion requested review from a team, Dashron, julshotal and emilyskuo and removed request for a team March 23, 2022 23:27
Copy link
Contributor

@julshotal julshotal left a comment

Choose a reason for hiding this comment

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

Went over this on a call with Jon - everything looks good 👍
Only thing is adding to the test a spec validation just to double-check it validates correctly

@erunion erunion merged commit 666ba9f into main Mar 24, 2022
@erunion erunion deleted the fix/parameter-reassignment-bug branch March 24, 2022 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants