fix(接口测试): 修复swagger文件导入问题

--bug=1019960--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001019960
This commit is contained in:
guoyuqi 2022-12-01 20:48:58 +08:00 committed by xiaomeinvG
parent 3ffe71a657
commit 090e877a47
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class Swagger2Parser extends SwaggerAbstractParser {
}
public static String replaceStr(String sourceStr) {
return sourceStr.replaceAll("\"required\": \".*\"", "\"required\": []");
return sourceStr.replaceAll("\"required\": \"(.*?)\"", "\"required\": []");
}
// 鉴权设置