-
Notifications
You must be signed in to change notification settings - Fork 128
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
Can't resolve remote $ref with query parameter #1545
Comments
I confirm this is a bug. Thanks for creating the issue! |
Do you have any pointers where to look to fix this myself? :-) Happy to contribute if time allows. |
That would be amazing! |
Describe the bug
It seems that any remote
$ref
that includes a query parameter cannot be resolved correctly.To Reproduce
Steps to reproduce the behavior:
You will now see the following error:
Our use case is the following: we want to link to URLs in other Gitlab repos and link to specific refs:
What's interesting is that the URL itself actually does seem to resolve. It's not possible to show this in this repo, but if I use a query parameter that will return in a 404 it will actually tell me that the file was not found. However, it now fails to find the actual ref somehow. I'm not sure why :-)
Expected behavior
I would expect the full URL to resolve and find the correct ref.
Logs
See above
OpenAPI description
See https://github.com/vernondegoede/repo2-with-specs/blob/main/routes-not-working.yaml
And the downstream
$ref
: https://github.com/vernondegoede/repo1/blob/4deae7ddf2dad69ab31c2770c9dab51239d445a2/test.yamlRedocly Version(s)
Latest
Node.js
Version(s)v21.4.0
Additional context
N/A
The text was updated successfully, but these errors were encountered: