Deleting old code that cannot be run anymore.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-11-01 14:04:13 -04:00
parent 2bc3c67776
commit d096163f0e
3 changed files with 503 additions and 509 deletions

View File

@@ -138,12 +138,6 @@ func (p *Paths) Build(ctx context.Context, _, root *yaml.Node, idx *index.SpecIn
r, _, err := low.LocateRefNode(pNode, idx) r, _, err := low.LocateRefNode(pNode, idx)
if r != nil { if r != nil {
pNode = r pNode = r
if r.Tag == "" {
// If it's a node from file, tag is empty
// If it's a reference we need to extract actual operation node
pNode = r.Content[0]
}
if err != nil { if err != nil {
if !idx.AllowCircularReferenceResolving() { if !idx.AllowCircularReferenceResolving() {
return buildResult{}, fmt.Errorf("path item build failed: %s", err.Error()) return buildResult{}, fmt.Errorf("path item build failed: %s", err.Error())