fix(接口测试): 修复查看接口文档页面报错的缺陷

--bug=1019375 --user=王孝刚 【接口测试】接口定义,查看接口文档页面没有反应,接口和日志有报错
https://www.tapd.cn/55049933/s/1288892
This commit is contained in:
wxg0103 2022-11-04 14:36:22 +08:00 committed by wxg0103
parent f23191536d
commit 366aa6956b
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ public class ShareInfoService extends BaseShareInfoService {
if (isJsonSchema) {
jsonSchemaBodyDTO.setJsonSchema(bodyObj.get("jsonSchema"));
apiInfoDTO.setJsonSchemaBody(jsonSchemaBodyDTO);
String raw = JSONSchemaGenerator.getJson(bodyObj.get("jsonSchema").toString());
String raw = JSONSchemaGenerator.getJson(bodyObj.get("jsonSchema").asText());
this.setPreviewData(previewJsonArray, raw);
} else {
if (bodyObj.has("raw")) {