Redocly/redoc

Description of array items is not appeared on response.

Open

#1 179 ouverte le 19 févr. 2020

Voir sur GitHub
 (3 commentaires) (13 réactions) (0 assignés)TypeScript (2 272 forks)batch import
Type: Enhancementhelp wanted

Métriques du dépôt

Stars
 (21 877 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

I found that UI would not show the description of items with the referenced schema.

I think this had mentioned In #538, but not fixed?

What swagger-UI showed:

What redoc showed, which lack of description "bar schema description.":

I test it with redoc-cli version 0.9.4, and the example YAML:

openapi: "3.0.0"
info:
  title: test
  version: "0.0.0"
paths:
  /foo:
    get:
      summary: foo
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                description: array of bars
                type: array
                items:
                  $ref: "#/components/schemas/bar"
components:
  schemas:
    bar:
      description: bar schema description.
      type: object
      properties:
        name:
          type: string

Guide contributeur