You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parseFromUrl does not resolve relative references #504
Given the use of parseFromUrl I would expect that if the remote document contained relative references, they would be resolved based on the URL passed to parseFromUrl 🤔
How to Reproduce
Given a reference such as "$ref": "./components/parameters.json#/server_id" in an AsyncAPI document located at https://raw.githubusercontent.com/org/repo/main/asyncapi.json I would expect it to fetch the parameter from https://raw.githubusercontent.com/org/repo/main/components/parameters.json#/server_id instead of trying to fetch it locally on the machine.
@jonaslagoni just to be sure, this is feature request, not really a bug. Especially that if someone wants to do that what you just described has an option to pass custom resolver to parseFromUrl. We just do not provide such a resolver out of the box
Activity
derberg commentedon Jul 18, 2022
@jonaslagoni just to be sure, this is
featurerequest, not really abug. Especially that if someone wants to do that what you just described has an option to pass custom resolver toparseFromUrl. We just do not provide such a resolver out of the boxjonaslagoni commentedon Jul 18, 2022
@derberg that would make sense yes.
asyncapi-bot commentedon Sep 14, 2022
🎉 This issue has been resolved in version 1.16.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
asyncapi-bot commentedon Apr 24, 2023
🎉 This issue has been resolved in version 2.0.0-next-major.18 🎉
The release is available on:
Your semantic-release bot 📦🚀