Skip to content

Why does $ref automatically resolve on extensions? #1387

Open
@shockey

Description

@shockey

From @rwrife on September 14, 2018 18:2

I've noticed that the Swagger UI is trying to resolve $refs on extensions, and in my case failing, even though it can't use the data in the extension, thus resulting in a meaningless error to the end-user. Ideally I think it would, more or less, ignore anything defined in the extensions. For example on an operation I have:

"x-ms-examples": { "Test Examples": { "$ref": "./examples/myExamples.json" } }

The UI can't do anything with x-ms-examples, so why attempt to resolve the ref (which it can't resolve in my specific case)?

Copied from original issue: swagger-api/swagger-ui#4880

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