json-ref-resolver
json-ref-resolver copied to clipboard
does not support local URL file path
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
- 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]