mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +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 {
|
||||
seenReferences := make(map[string]bool)
|
||||
var journey []*index.Reference
|
||||
res.indexesVisited++
|
||||
res.journeysTaken++
|
||||
res.VisitReference(ref.Reference, seenReferences, journey, false)
|
||||
}
|
||||
schemas := idx.GetAllComponentSchemas()
|
||||
@@ -176,7 +176,7 @@ func visitIndexWithoutDamagingIt(res *Resolver, idx *index.SpecIndex) {
|
||||
if mappedIndex[s] == nil {
|
||||
seenReferences := make(map[string]bool)
|
||||
var journey []*index.Reference
|
||||
res.indexesVisited++
|
||||
res.journeysTaken++
|
||||
res.VisitReference(schemaRef, seenReferences, journey, false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user