fix(接口测试): 修复swagger文件导入问题
--bug=1019960--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001019960
This commit is contained in:
parent
3ffe71a657
commit
090e877a47
|
@ -73,7 +73,7 @@ public class Swagger2Parser extends SwaggerAbstractParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String replaceStr(String sourceStr) {
|
public static String replaceStr(String sourceStr) {
|
||||||
return sourceStr.replaceAll("\"required\": \".*\"", "\"required\": []");
|
return sourceStr.replaceAll("\"required\": \"(.*?)\"", "\"required\": []");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 鉴权设置
|
// 鉴权设置
|
||||||
|
|
Loading…
Reference in New Issue