我的 Swagger UI 有一个问题,它显示一个空的“示例”组合框(下图中标记为黄色),看起来不太好。有没有办法删除它或将其文本更改为有用的内容?
我尝试添加example
标签,但它不起作用。操作定义如下所示:
post:
tags:
- pet
summary: Add a new pet to the store
operationId: addPet
requestBody:
description: Pet object that needs to be added to the store
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
application/xml:
schema:
$ref: '#/components/schemas/Pet'
required: true
responses:
405:
description: Invalid input
content: {}
security:
- petstore_auth:
- write:pets
- read:pets
这是一个错误 https://github.com/swagger-api/swagger-ui/issues/5455在 Swagger UI v. 3.23.0-3.23.1(和 Swagger Editor 3.6.31)中,在 v.3.23.2 中修复.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)