-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
Reproduced with the latest version (v2.1.4 on http://petstore.swagger.io/)
Yaml file:
swagger: '2.0'
info:
title: Test API
description: Test API
version: "1.0.0"
paths:
/testAPI:
get:
produces:
- text/plain
- application/json
description: test API
responses:
200:
description: When all goes well
examples:
text/plain: "This is some example output"
application/json: {msg: "This is some example output"}
Within Swagger-editor, I can clearly see both examples. But in Swagger-ui, the examples are not shown.
Here is a copy of the above yaml file, for use with petstore : https://gist.githubusercontent.com/eminence/3868b27d319259601df779c45547857d/raw/193469c1558bcc721c5c516a283490ef9e357e9e/test.yaml