mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-10 02:42:25 +08:00
[!]fix swagger文档使用knife4j时接口文档query类型参数的数据类型显示不正确的问题(不影响swagger原生UI)
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user