mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
bashing through usecases and updating tests as we go.
so many things that can go wrong. have to catch them all. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -189,6 +189,7 @@ func (index *SpecIndex) ExtractRefs(node, parent *yaml.Node, seenPath []string,
|
||||
|
||||
var p string
|
||||
uri := strings.Split(value, "#/")
|
||||
|
||||
if strings.HasPrefix(value, "http") || filepath.IsAbs(value) {
|
||||
if len(uri) == 2 {
|
||||
_, p = utils.ConvertComponentIdIntoFriendlyPathSearch(fmt.Sprintf("#/%s", uri[1]))
|
||||
|
||||
Reference in New Issue
Block a user