"$ref" link resolving in examples

12 views
Skip to first unread message

Aleksey Chernoraenko

unread,
May 16, 2018, 10:00:51 AM5/16/18
to Swagger
Hello guys,
I have a spec (openapi 3) that contains examples that contain "$ref" links that point to fake data like this:
{code:json}
{
  "openapi": "3.0.0",
  ...
  "components": {
    "examples": {
      "service": {
        "description": "Example of Service resource",
        "value": {
          "id": "1244d92f-332e-4eca-90a9-3e7d4627cf7a",
          "value": "00000000023459FE",
          "$ref": "http://api.example.org/scim/providers/activeDirectory/users/00000000023459FE",
          "display": "Jessica Brandenburg"
        }
      }
    }
  }
}
{code}
It seems that swagger-ui is constantly trying to resolve them and fails (error panel is poped up).

Is it possible to disable this behaviour?

--
Thanks!
Alex
Reply all
Reply to author
Forward
0 new messages