hi,感谢开发出这个包,这个包比 swagger-ui 好用多了, 目前我遇到了一个响应解析的问题,这个 json 串在 swagger-ui、redoc 和 apifox 都是可以正常解析的,但是在 qingfeng 无法解析:
{
"openapi": "3.0.0",
"info": {
"title": "apidoc",
"description": "",
"version": "1.0.0"
},
"paths": {
"third-platform-domain/": {
"get": {
"tags": [
"第三方平台域名"
],
"summary": "列表",
"operationId": "97484ece01ac8acb3141613f38fd917e",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/ResponseSchema"
},
{
"properties": {
"data": {
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/PaginationSchema"
},
{
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ThirdPlatformDomainResource"
}
}
}
}
]
}
}
}
]
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"PaginationSchema": {
"properties": {
"page": {
"description": "当前页",
"type": "integer"
},
"per_page": {
"description": "每页条数",
"type": "integer"
},
"total": {
"description": "总条数",
"type": "integer"
},
"total_page": {
"description": "总页数",
"type": "integer"
}
},
"type": "object"
},
"ResponseSchema": {
"properties": {
"code": {
"description": "状态码",
"type": "integer"
},
"message": {
"description": "消息",
"type": "string"
},
"error": {
"description": "错误",
"type": "object"
}
},
"type": "object"
},
"ThirdPlatformDomainDto": {
"required": [
"name",
"url",
"alias"
],
"properties": {
"name": {
"description": "平台名称",
"type": "string"
},
"url": {
"description": "地址",
"type": "string"
},
"alias": {
"description": "别名",
"type": "string"
}
},
"type": "object"
},
"ThirdPlatformDomainResource": {
"properties": {
"id": {
"description": "Id",
"type": "string"
},
"name": {
"description": "平台名称",
"type": "string"
},
"url": {
"description": "地址",
"type": "string"
},
"alias": {
"description": "别名",
"type": "string"
}
},
"type": "object"
}
}
},
"tags": [
{
"name": "第三方平台域名",
"description": "第三方平台域名"
}
]
}
hi,感谢开发出这个包,这个包比 swagger-ui 好用多了, 目前我遇到了一个响应解析的问题,这个 json 串在 swagger-ui、redoc 和 apifox 都是可以正常解析的,但是在 qingfeng 无法解析:
{ "openapi": "3.0.0", "info": { "title": "apidoc", "description": "", "version": "1.0.0" }, "paths": { "third-platform-domain/": { "get": { "tags": [ "第三方平台域名" ], "summary": "列表", "operationId": "97484ece01ac8acb3141613f38fd917e", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ResponseSchema" }, { "properties": { "data": { "type": "object", "allOf": [ { "$ref": "#/components/schemas/PaginationSchema" }, { "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/ThirdPlatformDomainResource" } } } } ] } } } ] } } } } } } } }, "components": { "schemas": { "PaginationSchema": { "properties": { "page": { "description": "当前页", "type": "integer" }, "per_page": { "description": "每页条数", "type": "integer" }, "total": { "description": "总条数", "type": "integer" }, "total_page": { "description": "总页数", "type": "integer" } }, "type": "object" }, "ResponseSchema": { "properties": { "code": { "description": "状态码", "type": "integer" }, "message": { "description": "消息", "type": "string" }, "error": { "description": "错误", "type": "object" } }, "type": "object" }, "ThirdPlatformDomainDto": { "required": [ "name", "url", "alias" ], "properties": { "name": { "description": "平台名称", "type": "string" }, "url": { "description": "地址", "type": "string" }, "alias": { "description": "别名", "type": "string" } }, "type": "object" }, "ThirdPlatformDomainResource": { "properties": { "id": { "description": "Id", "type": "string" }, "name": { "description": "平台名称", "type": "string" }, "url": { "description": "地址", "type": "string" }, "alias": { "description": "别名", "type": "string" } }, "type": "object" } } }, "tags": [ { "name": "第三方平台域名", "description": "第三方平台域名" } ] }