mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Paths test coverage is completed.
Found some good gaps a holes in existing overage.
This commit is contained in:
@@ -1722,7 +1722,7 @@ func (index *SpecIndex) performExternalLookup(uri []string, componentId string,
|
||||
func (index *SpecIndex) FindComponentInRoot(componentId string) *Reference {
|
||||
|
||||
name, friendlySearch := utils.ConvertComponentIdIntoFriendlyPathSearch(componentId)
|
||||
|
||||
friendlySearch = strings.ReplaceAll(friendlySearch, "~1", "/")
|
||||
path, _ := yamlpath.NewPath(friendlySearch)
|
||||
res, _ := path.Find(index.root)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user