mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-08 04:20:17 +00:00
Fixed counter issue
I am getting tired now, time for a break.
This commit is contained in:
@@ -168,7 +168,7 @@ func visitIndexWithoutDamagingIt(res *Resolver, idx *index.SpecIndex) {
|
|||||||
for _, ref := range mapped {
|
for _, ref := range mapped {
|
||||||
seenReferences := make(map[string]bool)
|
seenReferences := make(map[string]bool)
|
||||||
var journey []*index.Reference
|
var journey []*index.Reference
|
||||||
res.indexesVisited++
|
res.journeysTaken++
|
||||||
res.VisitReference(ref.Reference, seenReferences, journey, false)
|
res.VisitReference(ref.Reference, seenReferences, journey, false)
|
||||||
}
|
}
|
||||||
schemas := idx.GetAllComponentSchemas()
|
schemas := idx.GetAllComponentSchemas()
|
||||||
@@ -176,7 +176,7 @@ func visitIndexWithoutDamagingIt(res *Resolver, idx *index.SpecIndex) {
|
|||||||
if mappedIndex[s] == nil {
|
if mappedIndex[s] == nil {
|
||||||
seenReferences := make(map[string]bool)
|
seenReferences := make(map[string]bool)
|
||||||
var journey []*index.Reference
|
var journey []*index.Reference
|
||||||
res.indexesVisited++
|
res.journeysTaken++
|
||||||
res.VisitReference(schemaRef, seenReferences, journey, false)
|
res.VisitReference(schemaRef, seenReferences, journey, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user