Fixed tests that were using old signature.

Using new function, same old functionality.
This commit is contained in:
Dave Shanley
2023-01-28 13:52:55 -05:00
parent 6d77716c9a
commit 4706365744
2 changed files with 3 additions and 3 deletions

View File

@@ -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. // 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 { func generateIndexCollection(idx *index.SpecIndex) []func() map[string]*index.Reference {
return []func() map[string]*index.Reference{ return []func() map[string]*index.Reference{
idx.GetAllSchemas, idx.GetAllComponentSchemas,
idx.GetMappedReferences, idx.GetMappedReferences,
idx.GetAllExternalDocuments, idx.GetAllExternalDocuments,
idx.GetAllParameters, idx.GetAllParameters,

View File

@@ -107,7 +107,7 @@ func (resolver *Resolver) Resolve() []*ResolvingError {
ref.Reference.Node.Content = resolver.VisitReference(ref.Reference, seenReferences, journey, true) ref.Reference.Node.Content = resolver.VisitReference(ref.Reference, seenReferences, journey, true)
} }
schemas := resolver.specIndex.GetAllSchemas() schemas := resolver.specIndex.GetAllComponentSchemas()
for s, schemaRef := range schemas { for s, schemaRef := range schemas {
if mappedIndex[s] == nil { if mappedIndex[s] == nil {
seenReferences := make(map[string]bool) seenReferences := make(map[string]bool)
@@ -152,7 +152,7 @@ func (resolver *Resolver) CheckForCircularReferences() []*ResolvingError {
resolver.VisitReference(ref.Reference, seenReferences, journey, false) resolver.VisitReference(ref.Reference, seenReferences, journey, false)
} }
schemas := resolver.specIndex.GetAllSchemas() schemas := resolver.specIndex.GetAllComponentSchemas()
for s, schemaRef := range schemas { for s, schemaRef := range schemas {
if mappedIndex[s] == nil { if mappedIndex[s] == nil {
seenReferences := make(map[string]bool) seenReferences := make(map[string]bool)