Skip to content

Commit

Permalink
fix: only parameters with query type in query string
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-bonnel committed Feb 22, 2017
1 parent 04845e3 commit 350a715
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.in === 'query' && (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 350a715

Please sign in to comment.