mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +00:00
Added decoding to alt-ref for root handling
Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -92,6 +92,7 @@ func (index *SpecIndex) SearchIndexForReferenceByReferenceWithContext(ctx contex
|
||||
if strings.Contains(ref, "%") {
|
||||
// decode the url.
|
||||
ref, _ = url.QueryUnescape(ref)
|
||||
refAlt, _ = url.QueryUnescape(refAlt)
|
||||
}
|
||||
|
||||
if r, ok := index.allMappedRefs[ref]; ok {
|
||||
|
||||
Reference in New Issue
Block a user