-
-
Notifications
You must be signed in to change notification settings - Fork 576
feat: $ref
-type parameters
#337
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
==========================================
+ Coverage 86.40% 90.71% +4.31%
==========================================
Files 5 5
Lines 250 237 -13
Branches 88 81 -7
==========================================
- Hits 216 215 -1
+ Misses 22 16 -6
+ Partials 12 6 -6
Continue to review full report at Codecov.
|
if (p.name) { | ||
allParameters[p.in][p.name] = p; | ||
if ("$ref" in p) { | ||
// return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in #340
query: { | ||
per_page: components["parameters"]["per_page"]; | ||
page: components["parameters"]["page"]; | ||
since: components["parameters"]["since"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
); | ||
}); | ||
|
||
it("$ref-type parameters (#329)", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Great tests!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I think there’s just a conflict from one of your other PRs.
Thanks for the great addition 🙇🏻
* test: `$ref`-type parameters * feat: `$ref`-type parameters * test: `requestBody` types * feat: `requestBody` types * refactor: remove obsolete line of code addresses https://github.com/drwpow/openapi-typescript/pull/337\#discussion_r511181303
fixes #329