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

perf(spec-parser): treat required + default parameter as optional parameter #10009

Merged
merged 3 commits into from
Sep 21, 2023

Conversation

SLdragon
Copy link
Contributor

Bug 25203352: [API ME] Treat required + default parameter as optional when list supported apis

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #10009 (eb0b4a7) into dev (fa0ba53) will increase coverage by 0.07%.
Report is 16 commits behind head on dev.
The diff coverage is 92.85%.

Additional details and impacted files

Impacted file tree graph

@@            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     
Files Changed Coverage Δ
.../fx-core/src/common/spec-parser/manifestUpdater.ts 86.90% <83.33%> (-0.91%) ⬇️
packages/fx-core/src/common/spec-parser/utils.ts 94.67% <100.00%> (+0.66%) ⬆️

... and 16 files with indirect coverage changes

yuqizhou77
yuqizhou77 previously approved these changes Sep 21, 2023
if (
schema.type !== "boolean" &&
schema.type !== "string" &&
schema.type !== "number" &&
schema.type !== "integer"
) {
if (param.required) {
if (param.required && schema.default === undefined) {
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@SLdragon SLdragon merged commit ec3acd0 into dev Sep 21, 2023
19 checks passed
@wenytang-ms wenytang-ms deleted the rentu-update921 branch September 21, 2023 08:51
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.

3 participants