From 5bd9846006ef7fdf6acbc008128ce658554594f8 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 25 Jan 2018 17:53:02 -0800 Subject: [PATCH] default to empty `ImmutableMap` when grabbing op metadata --- src/core/plugins/spec/reducers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/plugins/spec/reducers.js b/src/core/plugins/spec/reducers.js index bf8dadf5..bdeabc04 100644 --- a/src/core/plugins/spec/reducers.js +++ b/src/core/plugins/spec/reducers.js @@ -52,7 +52,7 @@ export default { }, [VALIDATE_PARAMS]: ( state, { payload: { pathMethod, isOAS3 } } ) => { - let meta = state.getIn( [ "meta", "paths", ...pathMethod ] ) + let meta = state.getIn( [ "meta", "paths", ...pathMethod ], fromJS({}) ) let isXml = /xml/i.test(meta.get("consumes_value")) return state.updateIn( [ "resolved", "paths", ...pathMethod, "parameters" ], fromJS([]), parameters => {