fix(接口测试): 解决覆盖导入报错以及swagger导出tag问题
--user=郭雨琦 --bug=1014812 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014812 --bug=1014699 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014699
This commit is contained in:
parent
64929cf027
commit
29db1e54ab
|
@ -586,6 +586,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
|||
if (modulePath.contains("/")) {
|
||||
split = modulePath.split("/");
|
||||
}
|
||||
if (split.length == 0 && StringUtils.isNotBlank(modulePath)) {
|
||||
split = new String[]{modulePath};
|
||||
}
|
||||
swaggerApiInfo.setTags(Arrays.asList(split));
|
||||
}
|
||||
|
||||
|
|
|
@ -874,7 +874,7 @@ public class ApiDefinitionService {
|
|||
|
||||
apiDefinition.setCreateTime(System.currentTimeMillis());
|
||||
apiDefinition.setUpdateTime(System.currentTimeMillis());
|
||||
if (apiDefinition.getVersionId().equals("update")) {
|
||||
if (apiDefinition.getVersionId() != null && apiDefinition.getVersionId().equals("update")) {
|
||||
if (StringUtils.isNotEmpty(apiTestImportRequest.getUpdateVersionId())) {
|
||||
apiDefinition.setVersionId(apiTestImportRequest.getUpdateVersionId());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue