diff --git a/document_examples_test.go b/document_examples_test.go index 67f9514..c1cf739 100644 --- a/document_examples_test.go +++ b/document_examples_test.go @@ -9,7 +9,6 @@ import ( "log/slog" "net/url" "os" - "runtime" "strings" "testing" @@ -644,20 +643,10 @@ func ExampleNewDocument_modifyAndReRender() { // capture new number of paths after re-rendering newPaths := orderedmap.Len(newModel.Model.Paths.PathItems) - if runtime.GOOS != "windows" { + // print the number of paths and schemas in the document + fmt.Printf("There were %d original paths. There are now %d paths in the document\n", originalPaths, newPaths) + fmt.Printf("The new spec has %d bytes\n", len(rawBytes)) + // Output: There were 13 original paths. There are now 14 paths in the document + // The new spec has 31213 bytes - // print the number of paths and schemas in the document - fmt.Printf("There were %d original paths. There are now %d paths in the document\n", originalPaths, newPaths) - fmt.Printf("The original spec had %d bytes, the new one has %d\n", len(petstore), len(rawBytes)) - // Output: There were 13 original paths. There are now 14 paths in the document - // The original spec had 31143 bytes, the new one has 31213 - - } else { - - // print the number of paths and schemas in the document - fmt.Printf("There were %d original paths. There are now %d paths in the document\n", originalPaths, newPaths) - fmt.Printf("The original spec had %d bytes, the new one has %d\n", len(petstore), len(rawBytes)) - // Output: There were 13 original paths. There are now 14 paths in the document - // The original spec had 32367 bytes, the new one has 31213 - } } diff --git a/index/rolodex.go b/index/rolodex.go index 416ff51..c6f5157 100644 --- a/index/rolodex.go +++ b/index/rolodex.go @@ -515,7 +515,7 @@ func (r *Rolodex) Open(location string) (RolodexFile, error) { return nil, fmt.Errorf("remote lookup for '%s' not allowed, please set the index configuration to "+ "AllowRemoteLookup to true", fileLookup) } - + for _, v := range r.remoteFS { f, err := v.Open(fileLookup)