[!]fix swagger文档使用knife4j时接口文档query类型参数的数据类型显示不正确的问题(不影响swagger原生UI)

This commit is contained in:
Lianjy
2021-05-18 18:31:28 +08:00
parent 3bade5a4ed
commit b2b742fe14

View File

@@ -336,8 +336,11 @@ public class SwaggerEntity {
this.schema = doProcessSchema(example);
} else {
this.example = example;
// fix swagger文档使用knife4j时无法显示接口详情的问题
this.schema = doProcessSchema(example);
/*
* fix swagger文档使用knife4j时无法显示接口详情的问题query类型参数
* schema 需设置为空字符串,否则请求参数中数据类型字段显示不正确
*/
this.schema = "";
}
}