fix: path-item $ref operation metadata storage (#4489)

This commit is contained in:
kyle
2018-04-27 10:29:33 -07:00
committed by GitHub
parent cbff0251ae
commit 8cef3adfe6
4 changed files with 56 additions and 1 deletions

View File

@@ -118,7 +118,11 @@ export default {
let operationPath = ["paths", ...path]
let metaPath = ["meta", "paths", ...path]
if(!state.getIn(["json", ...operationPath]) && !state.getIn(["resolved", ...operationPath])) {
if(
!state.getIn(["json", ...operationPath])
&& !state.getIn(["resolved", ...operationPath])
&& !state.getIn(["resolvedSubtrees", ...operationPath])
) {
// do nothing if the operation does not exist
return state
}