From 51016c33f4a9c6997d65c48e5bc4ff46e99a74f1 Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Wed, 2 Aug 2017 22:37:31 -0600 Subject: [PATCH] Attach `in` value to parameters map so parameters with the same name from different `in` types do not override each other. --- src/core/plugins/spec/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/plugins/spec/selectors.js b/src/core/plugins/spec/selectors.js index 728caf56..3a2cc39c 100644 --- a/src/core/plugins/spec/selectors.js +++ b/src/core/plugins/spec/selectors.js @@ -271,7 +271,7 @@ export function parameterValues(state, pathMethod, isXml) { let params = spec(state).getIn(["paths", ...pathMethod, "parameters"], fromJS([])) return params.reduce( (hash, p) => { let value = isXml && p.get("in") === "body" ? p.get("value_xml") : p.get("value") - return hash.set(p.get("name"), value) + return hash.set(`${p.get("name")}-${p.get("in")}`, value) }, fromJS({})) }