Working through fix-73 and v0.6.0

This commit is contained in:
Dave Shanley
2023-02-16 16:23:36 -05:00
parent 2d536c884d
commit 1df5f44e6f
17 changed files with 3241 additions and 1205 deletions

View File

@@ -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.