Orange-OpenSource / angular-swagger-ui

An angularJS implementation of Swagger UI
http://orange-opensource.github.io/angular-swagger-ui/
MIT License
135 stars 74 forks source link

swagger ui fails to show sample response with items in response #97

Closed RaghebAD closed 5 years ago

RaghebAD commented 5 years ago
    "responses": {
          "200": {
            "description": "getSummaryFromDateRange response",
            "schema": {
              "items": {
                "$ref": "#/definitions/SummaryResponse"
              }
            }
          }
        }

shows yellow line instead of a sample response

Screen Shot 2019-10-23 at 12 56 58 AM

I tried the same swagger file on https://editor.swagger.io/ , it works fine.

Screen Shot 2019-10-23 at 12 57 43 AM
mathieuales commented 5 years ago

your api descriptor is missing field type which is required as described in openapi spec