mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +00:00
Working through fix-73 and v0.6.0
This commit is contained in:
@@ -188,6 +188,10 @@ func IsCircular(node *yaml.Node, idx *index.SpecIndex) bool {
|
||||
if refs[i].Journey[k].Node == node {
|
||||
return true
|
||||
}
|
||||
isRef, _, refValue := utils.IsNodeRefValue(node)
|
||||
if isRef && refs[i].Journey[k].Definition == refValue {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
// check mapped references in case we didn't find it.
|
||||
@@ -216,6 +220,10 @@ func GetCircularReferenceResult(node *yaml.Node, idx *index.SpecIndex) *index.Ci
|
||||
if refs[i].Journey[k].Node == node {
|
||||
return refs[i]
|
||||
}
|
||||
isRef, _, refValue := utils.IsNodeRefValue(node)
|
||||
if isRef && refs[i].Journey[k].Definition == refValue {
|
||||
return refs[i]
|
||||
}
|
||||
}
|
||||
}
|
||||
// check mapped references in case we didn't find it.
|
||||
|
||||
Reference in New Issue
Block a user