mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
cleaning up the last few stragglers
Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -530,10 +530,6 @@ func ExtractMapNoLookupExtensions[PT Buildable[N], N any](
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if foundIndex == nil {
|
|
||||||
foundIndex = idx
|
|
||||||
}
|
|
||||||
|
|
||||||
var n PT = new(N)
|
var n PT = new(N)
|
||||||
err := BuildModel(node, n)
|
err := BuildModel(node, n)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -553,7 +549,6 @@ func ExtractMapNoLookupExtensions[PT Buildable[N], N any](
|
|||||||
}] = ValueReference[PT]{
|
}] = ValueReference[PT]{
|
||||||
Value: n,
|
Value: n,
|
||||||
ValueNode: node,
|
ValueNode: node,
|
||||||
//IsReference: isReference,
|
|
||||||
Reference: referenceValue,
|
Reference: referenceValue,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -370,11 +370,7 @@ func CompareDocuments(original, updated Document) (*model.DocumentChanges, []err
|
|||||||
if len(uErrs) > 0 {
|
if len(uErrs) > 0 {
|
||||||
errs = append(errs, uErrs...)
|
errs = append(errs, uErrs...)
|
||||||
}
|
}
|
||||||
if v2ModelLeft != nil && v2ModelRight != nil {
|
|
||||||
return what_changed.CompareSwaggerDocuments(v2ModelLeft.Model.GoLow(), v2ModelRight.Model.GoLow()), errs
|
return what_changed.CompareSwaggerDocuments(v2ModelLeft.Model.GoLow(), v2ModelRight.Model.GoLow()), errs
|
||||||
} else {
|
|
||||||
return nil, errs
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil, []error{fmt.Errorf("unable to compare documents, one or both documents are not of the same version")}
|
return nil, []error{fmt.Errorf("unable to compare documents, one or both documents are not of the same version")}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,10 +335,6 @@ func (resolver *Resolver) isInfiniteCircularDependency(ref *Reference, visitedDe
|
|||||||
if initialRef != nil && initialRef.Definition == r.Definition {
|
if initialRef != nil && initialRef.Definition == r.Definition {
|
||||||
return true, visitedDefinitions
|
return true, visitedDefinitions
|
||||||
}
|
}
|
||||||
|
|
||||||
if visitedDefinitions[r.Definition] {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
visitedDefinitions[r.Definition] = true
|
visitedDefinitions[r.Definition] = true
|
||||||
|
|
||||||
ir := initialRef
|
ir := initialRef
|
||||||
|
|||||||
Reference in New Issue
Block a user