mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Deleting old code that cannot be run anymore.
Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user