mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
More tuning and working on vacuum support
noticed a couple of stange things with vacuum Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -100,10 +100,12 @@ func LocateRefNodeWithContext(ctx context.Context, root *yaml.Node, idx *index.S
|
||||
if strings.HasPrefix(specPath, "http") {
|
||||
u, _ := url.Parse(specPath)
|
||||
p := ""
|
||||
if u.Path != "" {
|
||||
if u.Path != "" && explodedRefValue[0] != "" {
|
||||
p = filepath.Dir(u.Path)
|
||||
}
|
||||
u.Path = filepath.Join(p, explodedRefValue[0])
|
||||
if p != "" && explodedRefValue[0] != "" {
|
||||
u.Path = filepath.Join(p, explodedRefValue[0])
|
||||
}
|
||||
u.Fragment = ""
|
||||
rv = fmt.Sprintf("%s#%s", u.String(), explodedRefValue[1])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user