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: add missed methods to the SecurityScheme model #669

Merged

Conversation

magicmatatjahu
Copy link
Member

@magicmatatjahu magicmatatjahu commented Nov 7, 2022

Description

Add missed methods to the SecurityScheme model - name().

I don't know if we should have methods like hasName, hasScheme for every optional fields. What do you think?

Blocks asyncapi/markdown-template#312

cc @smoya

@magicmatatjahu magicmatatjahu added the bug Something isn't working label Nov 7, 2022
@magicmatatjahu magicmatatjahu changed the title Next/fix schema model fix: add missed methods to the SecurityScheme model Nov 7, 2022
@smoya
Copy link
Member

smoya commented Nov 8, 2022

I don't know if we should have methods like hasName, hasScheme for every optional fields. What do you think?

I think we should. Not only because of consistency but making life easier. 👍

@sonarcloud
Copy link

sonarcloud bot commented Nov 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@smoya smoya left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀🌔

@magicmatatjahu
Copy link
Member Author

/rtm

@asyncapi-bot asyncapi-bot merged commit 2915e4a into asyncapi:next-major Nov 8, 2022
@magicmatatjahu magicmatatjahu deleted the next/fix-schema-model branch November 8, 2022 10:07
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 2.0.0-next-major.9 🎉

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.

4 participants