Skip to content

Bundle of remote schema fails when schema includes relative reference #82

Open
@TomCools

Description

@TomCools

I have discovered an issue when a remote schema (ex. http://schema.com/user) contains another reference to a relative schema on that site (ref: "/address");

Using the resolver, i get a $refs object which contains following keys:

However, when trying to bundle(), I get the message that: "all pointers must begin with #".
I have made a workaround in my code using .resolve() and then swapping out the relative path by checking all the keys in the $refs object, but I expect bundle() to just work out of the box.

fyi, this relative path thing works fine on the official Swagger Editor website.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions