Skip to content

parseFromUrl does not resolve relative references #504

Closed

Description

@jonaslagoni

Describe the bug

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.

Activity

  1. added
    bug
    on Mar 25, 2022
  2. derberg commented on Jul 18, 2022

    @derberg
    Member

    @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

  3. jonaslagoni commented on Jul 18, 2022

    @jonaslagoni
    MemberAuthor

    @derberg that would make sense yes.

  4. asyncapi-bot commented on Sep 14, 2022

    @asyncapi-bot
    Contributor

    🎉 This issue has been resolved in version 1.16.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  5. asyncapi-bot commented on Apr 24, 2023

    @asyncapi-bot
    Contributor

    🎉 This issue has been resolved in version 2.0.0-next-major.18 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleasedreleased on @next-major

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions