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:
quobix
2024-02-03 11:17:43 -05:00
parent a6c70d56e2
commit e3659a4bbe

View File

@@ -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