refactor(接口测试): 优化swagger文件的query参数中$ref的解析
--story=1011415 --user=王孝刚 【Bug转需求】【接口定义】swagger 文件中中 query 参数 ref 未解析 1.20 同步提 https://www.tapd.cn/55049933/s/1359898
This commit is contained in:
parent
f3000746d2
commit
f34321b23c
|
@ -529,7 +529,7 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
|||
item.setType(PropertyConstant.ARRAY);
|
||||
JsonSchemaItem arrayItem = parseSchema(items, refSet);
|
||||
Map<String, String> mock = new LinkedHashMap<>();
|
||||
if (arrayItem != null) {
|
||||
if (arrayItem != null && MapUtils.isNotEmpty(arrayItem.getProperties())) {
|
||||
arrayItem.getProperties().forEach((k, v) -> {
|
||||
mock.put(k, StringUtils.isBlank(v.getMock().get(PropertyConstant.MOCK).toString()) ? v.getType() :
|
||||
v.getMock().get(PropertyConstant.MOCK).toString());
|
||||
|
|
Loading…
Reference in New Issue