-
Notifications
You must be signed in to change notification settings - Fork 196
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
perf(spec-parser): treat required + default parameter as optional parameter #10009
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## dev #10009 +/- ##
==========================================
+ Coverage 85.86% 85.94% +0.07%
==========================================
Files 445 445
Lines 25493 25533 +40
Branches 4870 4883 +13
==========================================
+ Hits 21890 21944 +54
+ Misses 1885 1874 -11
+ Partials 1718 1715 -3
|
if ( | ||
schema.type !== "boolean" && | ||
schema.type !== "string" && | ||
schema.type !== "number" && | ||
schema.type !== "integer" | ||
) { | ||
if (param.required) { | ||
if (param.required && schema.default === undefined) { |
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.
can we have a utility method to extract this logic?
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.
sure
Bug 25203352: [API ME] Treat required + default parameter as optional when list supported apis