fix gitee #I34LD6 .
This commit is contained in:
parent
0d123896be
commit
ee628235e7
|
@ -1,7 +1,11 @@
|
||||||
## smart-doc版本
|
## smart-doc版本
|
||||||
版本小于1.0都属于试用,正式1.0起始发布将会等到文中提到的问题解决后才发布。
|
版本小于1.0都属于试用,正式1.0起始发布将会等到文中提到的问题解决后才发布。
|
||||||
#### 版本号:2.0.6
|
#### 版本号:2.0.8
|
||||||
- 更新日期: 2020-01-24
|
- 更新日期: 2020-02-x
|
||||||
|
- 更新内容:
|
||||||
|
1. 修复文件上传的参数丢失的注释。
|
||||||
|
#### 版本号:2.0.7
|
||||||
|
- 更新日期: 2020-01-30
|
||||||
- 更新内容:
|
- 更新内容:
|
||||||
1. 修复postman的url中不附加的context-path的问题。
|
1. 修复postman的url中不附加的context-path的问题。
|
||||||
2. 修复带正则的path路径参数解析出现截取越界的问题。
|
2. 修复带正则的path路径参数解析出现截取越界的问题。
|
||||||
|
|
|
@ -581,7 +581,8 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
||||||
if (typeName.contains(DocGlobalConstants.MULTIPART_FILE_FULLY)) {
|
if (typeName.contains(DocGlobalConstants.MULTIPART_FILE_FULLY)) {
|
||||||
ApiParam param = ApiParam.of().setField(paramName).setType("file")
|
ApiParam param = ApiParam.of().setField(paramName).setType("file")
|
||||||
.setId(paramList.size() + 1).setQueryParam(true)
|
.setId(paramList.size() + 1).setQueryParam(true)
|
||||||
.setRequired(true).setVersion(DocGlobalConstants.DEFAULT_VERSION);
|
.setRequired(true).setVersion(DocGlobalConstants.DEFAULT_VERSION)
|
||||||
|
.setDesc(comment);
|
||||||
if (typeName.contains("[]")) {
|
if (typeName.contains("[]")) {
|
||||||
comment = comment + "(array of file)";
|
comment = comment + "(array of file)";
|
||||||
param.setDesc(comment);
|
param.setDesc(comment);
|
||||||
|
|
Loading…
Reference in New Issue