Skip to content

refactor: port security scheme model to ts - #513

Merged
magicmatatjahu merged 4 commits into
asyncapi:next-majorfrom
Souvikns:next/security-schemas
Apr 28, 2022
Merged

magicmatatjahu merged 4 commits into
asyncapi:next-majorfrom
Souvikns:next/security-schemas

Conversation

@Souvikns

@Souvikns Souvikns commented Apr 6, 2022

Copy link
Copy Markdown
Member

Description
Porting server-variable object to typescript.

Related issue(s)

See also #482

@Souvikns
Souvikns marked this pull request as ready for review April 12, 2022 08:35
@Souvikns

Copy link
Copy Markdown
Member Author

@magicmatatjahu should I add the flow object in this PR?

@magicmatatjahu

Copy link
Copy Markdown
Member

@Souvikns Go ahead :) The sooner we rewrite the models the better.

@Souvikns

Copy link
Copy Markdown
Member Author

@magicmatatjahu, @smoya can you clarify that AuthFlows object in the server-api has been updated. It does not follow the has, get, all, isEmpty format we are following for other collections.

@Souvikns

Copy link
Copy Markdown
Member Author

Ready for review 🤞🏻

@magicmatatjahu

Copy link
Copy Markdown
Member

@Souvikns sorry for such a long delay.

can you clarify that AuthFlows object in the server-api has been updated. It does not follow the has, get, all, isEmpty format we are following for other collections.

AuthFlows Object isn't collection but object, so we don't treat it as collection :)

@magicmatatjahu magicmatatjahu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this PR we should remove one field and we will implement it in next PRs - we have bug in parser-api. I will handle that. Rest is good 🚀

Comment thread src/models/server.ts Resolved
Comment thread src/models/v2/server.ts Resolved
Comment thread src/models/v3/server.ts Resolved
Comment thread test/models/v2/server.spec.ts Resolved
Comment thread test/models/v2/server.spec.ts Resolved
@sonarqubecloud

Copy link
Copy Markdown

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 30 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@magicmatatjahu magicmatatjahu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@magicmatatjahu
magicmatatjahu merged commit 6b208c7 into asyncapi:next-major Apr 28, 2022
magicmatatjahu pushed a commit to magicmatatjahu/parser-js that referenced this pull request Oct 3, 2022
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