Change name format to in.name and update tests

This commit is contained in:
Owen Conti
2017-08-03 19:29:49 -06:00
parent 17e99428c7
commit 7a694e287a
3 changed files with 4 additions and 4 deletions

View File

@@ -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")}-${p.get("in")}`, value)
return hash.set(`${p.get("in")}.${p.get("name")}`, value)
}, fromJS({}))
}