mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Fixed tests that were using old signature.
Using new function, same old functionality.
This commit is contained in:
@@ -31,7 +31,7 @@ func FindItemInMap[T any](item string, collection map[KeyReference[string]]Value
|
||||
// helper function to generate a list of all the things an index should be searched for.
|
||||
func generateIndexCollection(idx *index.SpecIndex) []func() map[string]*index.Reference {
|
||||
return []func() map[string]*index.Reference{
|
||||
idx.GetAllSchemas,
|
||||
idx.GetAllComponentSchemas,
|
||||
idx.GetMappedReferences,
|
||||
idx.GetAllExternalDocuments,
|
||||
idx.GetAllParameters,
|
||||
|
||||
@@ -107,7 +107,7 @@ func (resolver *Resolver) Resolve() []*ResolvingError {
|
||||
ref.Reference.Node.Content = resolver.VisitReference(ref.Reference, seenReferences, journey, true)
|
||||
}
|
||||
|
||||
schemas := resolver.specIndex.GetAllSchemas()
|
||||
schemas := resolver.specIndex.GetAllComponentSchemas()
|
||||
for s, schemaRef := range schemas {
|
||||
if mappedIndex[s] == nil {
|
||||
seenReferences := make(map[string]bool)
|
||||
@@ -152,7 +152,7 @@ func (resolver *Resolver) CheckForCircularReferences() []*ResolvingError {
|
||||
resolver.VisitReference(ref.Reference, seenReferences, journey, false)
|
||||
}
|
||||
|
||||
schemas := resolver.specIndex.GetAllSchemas()
|
||||
schemas := resolver.specIndex.GetAllComponentSchemas()
|
||||
for s, schemaRef := range schemas {
|
||||
if mappedIndex[s] == nil {
|
||||
seenReferences := make(map[string]bool)
|
||||
|
||||
Reference in New Issue
Block a user