Skip to content

Commit

Permalink
fix: ignore null parameter values (via #1363)
Browse files Browse the repository at this point in the history
* ignore `null` parameter values

* linter fix
  • Loading branch information
shockey authored Aug 4, 2018
1 parent d8e32a9 commit 0cdc648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/execute/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ export function buildRequest(options) {
console.warn(`Parameter '${parameter.name}' is ambiguous because the defined spec has more than one parameter with the name: '${parameter.name}' and the passed-in parameter values did not define an 'in' value.`)
}

if (value === null) {
return
}

if (typeof parameter.default !== 'undefined' && typeof value === 'undefined') {
value = parameter.default
}
Expand Down

0 comments on commit 0cdc648

Please sign in to comment.