Skip to content

Resolver error with multi-file schema definitions #5664

@jdegre

Description

@jdegre

I have 3 test YAML files (really simple and tiny), containing cross-referenced schema definitions (all of them fully resolvable).

The YAML files can be found here:
test.yaml
a.yaml
b.yaml

To reproduce the bug, we can use the latest online Swagger Editor:
https://editor.swagger.io/?url=https://jdegre.github.io/test/test.yaml

The output is as follows in the screenshot:

Image

The errors in the "console", at the bottom-left, seem to indicate a failed attempt to retrieve files "a.yaml" and "b.yaml". Also, please note the Resolver error on the top-right side (on the Swagger UI window).

HOWEVER, the resolution of the references is, in fact, successful, as we can see on the schemas of the POST method, again on the Swagger UI window.

So, the actual bug seems to be that there are certain transient errors that stay on the screen, while I guess they shouldn't, since the resolution eventually works fine.

(This is a re-post of an old bug I posted maybe 5-6 years ago, but I thought it could be useful to re-post the issue, given the brand new architecture of Swagger Editor, and given that the bug still exists)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions