mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
Addressed issue #240
Not sure why I built the original code the way it was, but it’s now a simplified query without stripping out, or manipulating the path in anyway, the rest of the code that follows after handles the query correctly. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -155,8 +155,7 @@ func (index *SpecIndex) lookupRolodex(uri []string) *Reference {
|
||||
if len(uri) < 2 {
|
||||
wholeFile = true
|
||||
} else {
|
||||
query = fmt.Sprintf("#/%s", strings.Replace(uri[1], "~1", "./", 1))
|
||||
query = strings.ReplaceAll(query, "~1", "/")
|
||||
query = fmt.Sprintf("#/%s", uri[1])
|
||||
}
|
||||
|
||||
// check if there is a component we want to suck in, or if the
|
||||
|
||||
Reference in New Issue
Block a user