Pass the key node

This commit is contained in:
Dmitry
2023-08-25 10:42:17 +02:00
committed by quobix
parent 55da120b19
commit 6c24cd5940
12 changed files with 22 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ func (cb *Callback) Build(_, root *yaml.Node, idx *index.SpecIndex) error {
if strings.HasPrefix(currentCB.Value, "x-") {
continue // ignore extension.
}
callback, eErr, _, rv := low.ExtractObjectRaw[*PathItem](callbackNode, idx)
callback, eErr, _, rv := low.ExtractObjectRaw[*PathItem](currentCB, callbackNode, idx)
if eErr != nil {
return eErr
}