Skip to content

Commit

Permalink
fix: boolean parameters when false fail validation
Browse files Browse the repository at this point in the history
fix corrects the validation check
  • Loading branch information
zcstarr committed May 27, 2020
1 parent ff4f0c5 commit 17f2a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/method-call-validator/method-call-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class MethodCallValidator {
} else if (method.paramStructure === "by-name") {
id = param.name;
} else {
if (params[index]) {
if (params[index] !== undefined ) {
id = index;
} else {
id = param.name;
Expand Down

0 comments on commit 17f2a29

Please # to comment.