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 => {