fix(接口测试): 导出swagger再导入其他平台缺少值
--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001016562
This commit is contained in:
parent
2535c53693
commit
c3bf7bd29b
|
@ -694,14 +694,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
||||||
swaggerParam.setName((String) param.get("name"));
|
swaggerParam.setName((String) param.get("name"));
|
||||||
swaggerParam.setRequired((boolean) param.get("required"));
|
swaggerParam.setRequired((boolean) param.get("required"));
|
||||||
swaggerParam.setExample((String) param.get("value"));
|
swaggerParam.setExample((String) param.get("value"));
|
||||||
// 请求头 value 没有导出
|
JSONObject schema = new JSONObject();
|
||||||
// JSONObject schema = new JSONObject();
|
schema.put("type", "string");
|
||||||
// swaggerParam.setSchema(schema);
|
swaggerParam.setSchema(schema);
|
||||||
// if(type.equals("headers")) {
|
|
||||||
// schema.put("type", "string");
|
|
||||||
// schema.put("example", param.getString("value"));
|
|
||||||
// swaggerParam.setSchema(schema);
|
|
||||||
// }
|
|
||||||
paramsList.add(JSON.parseObject(JSON.toJSONString(swaggerParam), Feature.DisableSpecialKeyDetect));
|
paramsList.add(JSON.parseObject(JSON.toJSONString(swaggerParam), Feature.DisableSpecialKeyDetect));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue