mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
fix(接口测试): 解决swagger导入报类型转换问题
--user=郭雨琦
This commit is contained in:
parent
0fbdc32ef2
commit
840f7c5b99
@ -293,8 +293,8 @@ public class Swagger2Parser extends SwaggerAbstractParser {
|
||||
ArrayModel arrayModel = (ArrayModel) schema;
|
||||
item.setType("array");
|
||||
item.setItems(new ArrayList<>());
|
||||
JsonSchemaItem arrayItem = parseJsonSchema((Model) arrayModel.getItems(), refSet);
|
||||
if (arrayItem != null) item.getItems().add(arrayItem);
|
||||
JsonSchemaItem proItem = parseProperty(arrayModel.getItems(), refSet);
|
||||
if (proItem != null) item.getItems().add(proItem);
|
||||
} else if (schema instanceof ModelImpl) {
|
||||
item.setType("object");
|
||||
ModelImpl model = (ModelImpl) schema;
|
||||
|
Loading…
Reference in New Issue
Block a user