Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

does not support local URL file path #217

Open
jianyexi opened this issue Mar 17, 2022 · 0 comments
Open

does not support local URL file path #217

jianyexi opened this issue Mar 17, 2022 · 0 comments

Comments

@jianyexi
Copy link

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]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant