mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
Rresolved issue https://github.com/daveshanley/vacuum/issues/481
Ignore array values defined as ‘$ref’ they are invalid to lookup.
This commit is contained in:
@@ -215,6 +215,10 @@ func (index *SpecIndex) ExtractRefs(node, parent *yaml.Node, seenPath []string,
|
||||
if !utils.IsNodeStringValue(node.Content[i+1]) {
|
||||
continue
|
||||
}
|
||||
// issue #481, don't look at refs in arrays, the next node isn't the value.
|
||||
if utils.IsNodeArray(node) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
index.linesWithRefs[n.Line] = true
|
||||
|
||||
Reference in New Issue
Block a user