-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected relative path $ref behaviour when nearby absolute $ref #160
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Relative paths like
$ref: ./somefile
are expected to load the file in the same directory as the file that is being dereferenced.This behaviour is not obvious in the example:
I need to find a way for the relative link
./relativefile
to load a file in the same folder... but instead it looks formine:https://host/folder/relativefile
When there's a "peer" $ref though in a parent element, the relative file paths become relative to the "peer" reference. This is unexpected. I am trying to find either:
or
Here's a self-contained example of the behaviour... that throws the error
Error: Error resolving $ref pointer "mine:https://host/folder/relativefile".
The full output of the above code is:
The text was updated successfully, but these errors were encountered: