Redocly/redoc
Auf GitHub ansehenDescription of array items is not appeared on response.
Open
#1.179 geöffnet am 19. Feb. 2020
Type: Enhancementhelp wanted
Repository-Metriken
- Stars
- (21.877 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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