Skip to content

Commit

Permalink
fix: fill params with header prop
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-bonnel committed Aug 14, 2018
1 parent bc0b7c3 commit f04d64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default {
reset(entry) {
const newParams = {};
(entry.parameters || []).forEach(p => {
this.currentRequest.params[p.name] = (p.in === 'query' && this.queryParams && this.queryParams[p.name]) || (p.in === 'header' && this.headers && this.headers[p.name]) || null
newParams[p.name] = (p.in === 'query' && this.queryParams && this.queryParams[p.name]) || (p.in === 'header' && this.headers && this.headers[p.name]) || null
if (!newParams[p.name]) {
if (p.schema && p.schema.enum) {
newParams[p.name] = p.schema.enum[0]
Expand Down

0 comments on commit f04d64e

Please sign in to comment.