【发布时间】:2017-01-24 20:40:02
【问题描述】:
这是我生成的 swagger 文档的摘录。
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/ActionJsValue"
}
},
"400": {
"description": "list of validation errors",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Error"
}
}
}
}
在定义部分:
"Error": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"messages": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
而且 swagger-ui 不显示响应模型。
有人遇到过这个问题吗? 有谁知道如何解决这个问题?
【问题讨论】:
标签: swagger swagger-ui