fix(接口测试): 修复swagger导入没有响应内容的缺陷
--bug=1026582 --user=王孝刚 【接口测试】github#24656,【接口测试】同一个接口导出成MeterSphere格式和swagger格式后,再次导入系统后,swagger响应数据的展示内容不对。 https://www.tapd.cn/55049933/s/1377196
This commit is contained in:
parent
cff497fae5
commit
2971fc5000
|
@ -534,6 +534,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
|||
});
|
||||
}
|
||||
item.getMock().put(PropertyConstant.MOCK, JSONUtil.toJSONString(mock));
|
||||
if (arrayItem != null) {
|
||||
item.getItems().add(arrayItem);
|
||||
}
|
||||
} else if (schema instanceof ObjectSchema) {
|
||||
item.setType(PropertyConstant.OBJECT);
|
||||
item.setProperties(parseSchemaProperties(schema, refSet));
|
||||
|
|
Loading…
Reference in New Issue