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

does not support local URL file path #217

@jianyexi

Description

@jianyexi

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions