refactor(接口测试): 修复调试结果和请求体内容不一致的缺陷
--bug=1037330 --user=王孝刚 【接口测试】接口定义-创建api-调试结果中请求体内容和实际不一致 https://www.tapd.cn/55049933/s/1478115
This commit is contained in:
parent
96d5c279c7
commit
2585ccaaa3
|
@ -278,7 +278,7 @@ public class Swagger3Parser<T> implements ImportParser<ApiDefinitionImport> {
|
||||||
body.setBodyType(Body.BodyType.JSON.name());
|
body.setBodyType(Body.BodyType.JSON.name());
|
||||||
JsonBody jsonBody = new JsonBody();
|
JsonBody jsonBody = new JsonBody();
|
||||||
jsonBody.setJsonSchema(jsonSchemaItem);
|
jsonBody.setJsonSchema(jsonSchemaItem);
|
||||||
jsonBody.setEnableJsonSchema(true);
|
jsonBody.setEnableJsonSchema(false);
|
||||||
if (ObjectUtils.isNotEmpty(value.getExample())) {
|
if (ObjectUtils.isNotEmpty(value.getExample())) {
|
||||||
jsonBody.setJsonValue(ApiDataUtils.toJSONString(value.getExample()));
|
jsonBody.setJsonValue(ApiDataUtils.toJSONString(value.getExample()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue