json-ref-resolver icon indicating copy to clipboard operation
json-ref-resolver copied to clipboard

does not support local URL file path

Open jianyexi opened this issue 3 years ago • 0 comments

Describe the bug

the resolver can not resolve reference which is specified as local file URL , like

$ref: file:///C:/foo.json

will return error

''#/inner' does not exist @ 'c:/model/b.json''

To Reproduce

  1. Given this OpenAPI document
C:/model/a.json
{
 foo: {
   "$ref":"file:///C:/b.json"
 }
}

C:/aotherModel/b.json
{
  foo: {
  ....  
 }
}

Expected behavior

can resolve it correctly

Screenshots

Environment (remove any that are not applicable):

  • Library version: [e.g. 3.0.0]
  • OS: [Windows 11]

jianyexi avatar Mar 17 '22 07:03 jianyexi