Redocly/redoc
View on GitHubDescription of array items is not appeared on response.
Open
#1179 opened on Feb 19, 2020
Type: Enhancementhelp wanted
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