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: render specs that contain oauth2 password flow only #1023

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

pltod2
Copy link
Contributor

@pltod2 pltod2 commented Jun 26, 2024

Description

Fix for rendering specifications that contain oauth2 password flow only.

Related issue(s)

Resolves #1007

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

Copy link

sonarcloud bot commented Jul 3, 2024

1 similar comment
Copy link

sonarcloud bot commented Jul 3, 2024

@pltod2
Copy link
Contributor Author

pltod2 commented Jul 12, 2024

@derberg Do you have any idea when this PR can be looked at and merged? Thanks for your response!

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

@pltod2
Copy link
Contributor Author

pltod2 commented Jul 15, 2024

@derberg done

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

sorry, I meant like edit the existing YAML file and add additional configuration that you can use in test.

we always try to make sure that whatever new case we support and test, is the easily "quick to see" in https://asyncapi.github.io/asyncapi-react/

@pltod2
Copy link
Contributor Author

pltod2 commented Jul 16, 2024

No worries. Initially I thought you may want to keep your test file clean of new use cases because in security schemes you have "supportedOauthFlows" and now "oauth2Password" which may look strange. The thing is that the bug is happening if we have OAuth with only password flow so we have to add separate scheme. Anyway, the json is updated and I had to delete my test as well since adding the test data in the same file made it duplicate with "and streetlight mqtt example" test.

@derberg
Copy link
Member

derberg commented Jul 17, 2024

Thanks for the PR!

/rtm

@asyncapi-bot asyncapi-bot merged commit f087fd0 into asyncapi:master Jul 17, 2024
9 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 2.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Fails to render the specification if it contains oauth2 security scheme with password flow
3 participants