Skip to content

Commit

Permalink
fix: query with no parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-bonnel committed Feb 17, 2017
1 parent bf6badb commit 04845e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default {
},
request() {
this.currentResponse = ''
let params = Object.assign({}, ...this.selectedEntry.parameters.filter(p => p.schema.type === 'array' ? this.currentRequest[p.name].length : this.currentRequest[p.name])
let params = Object.assign({}, ...(this.selectedEntry.parameters || []).filter(p => p.schema.type === 'array' ? this.currentRequest[p.name].length : this.currentRequest[p.name])
.map(p => ({
// TODO : join character for array should depend of p.style
[p.name]: p.schema.type === 'array' ? this.currentRequest[p.name].join(',') : this.currentRequest[p.name]
Expand Down

0 comments on commit 04845e3

Please sign in to comment.