mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
fix
This commit is contained in:
@@ -31,6 +31,7 @@ import (
|
|||||||
// how the index is set up.
|
// how the index is set up.
|
||||||
func NewSpecIndexWithConfig(rootNode *yaml.Node, config *SpecIndexConfig) *SpecIndex {
|
func NewSpecIndexWithConfig(rootNode *yaml.Node, config *SpecIndexConfig) *SpecIndex {
|
||||||
index := new(SpecIndex)
|
index := new(SpecIndex)
|
||||||
|
boostrapIndexCollections(rootNode, index)
|
||||||
index.config = config
|
index.config = config
|
||||||
index.rolodex = config.Rolodex
|
index.rolodex = config.Rolodex
|
||||||
index.uri = config.uri
|
index.uri = config.uri
|
||||||
@@ -45,7 +46,6 @@ func NewSpecIndexWithConfig(rootNode *yaml.Node, config *SpecIndexConfig) *SpecI
|
|||||||
Level: slog.LevelError,
|
Level: slog.LevelError,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
boostrapIndexCollections(rootNode, index)
|
|
||||||
return createNewIndex(rootNode, index, config.AvoidBuildIndex)
|
return createNewIndex(rootNode, index, config.AvoidBuildIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user