我需要描述我的应用程序的路线,因此我使用 swagger:
paths:
/users:
get:
description: Returns all users
responses:
"204":
description: No Content Found
schema:
$ref: "#/definitions/NoContentFound"
definitions:
NoContentFound:
required:
- message
properties:
message:
type: string
Run Code Online (Sandbox Code Playgroud)
我在 swagger UI 上收到此错误:
Unknown response type
Run Code Online (Sandbox Code Playgroud)
在 app.js 上:
Unknown response type
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
| 归档时间: |
|
| 查看次数: |
13903 次 |
| 最近记录: |