Skip to content

externalReferenceResolution in DereferenceOptions doesn't work #384

Open
@dslovinsky

Description

@dslovinsky

Expected behavior:

When set to "relative", relative paths should resolve relative to the directory. So this ref:
$ref: "./_shared/components.yaml#/components/schemas/uint256"
should resolve to:
<the directory the JSON schema is in>/_shared/components.yaml#/components/schemas/uint256

Actual behavior:

It always resolves against the CWD regardless of option choice.
So the above will get resolved as:
<root dir>/_shared/components.yaml#/components/schemas/uint256

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