diff --git a/OpenApi.vue b/OpenApi.vue index 9c38350..495d18b 100644 --- a/OpenApi.vue +++ b/OpenApi.vue @@ -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]