fix(接口测试): 修复查看接口文档页面报错的缺陷
--bug=1019375 --user=王孝刚 【接口测试】接口定义,查看接口文档页面没有反应,接口和日志有报错 https://www.tapd.cn/55049933/s/1288892
This commit is contained in:
parent
c9c3a947b4
commit
4080b9c8b0
|
@ -277,7 +277,7 @@ public class ShareInfoService extends BaseShareInfoService {
|
||||||
if (isJsonSchema) {
|
if (isJsonSchema) {
|
||||||
jsonSchemaBodyDTO.setJsonSchema(bodyObj.get("jsonSchema"));
|
jsonSchemaBodyDTO.setJsonSchema(bodyObj.get("jsonSchema"));
|
||||||
apiInfoDTO.setJsonSchemaBody(jsonSchemaBodyDTO);
|
apiInfoDTO.setJsonSchemaBody(jsonSchemaBodyDTO);
|
||||||
String raw = JSONSchemaGenerator.getJson(bodyObj.get("jsonSchema").toString());
|
String raw = JSONSchemaGenerator.getJson(bodyObj.get("jsonSchema").asText());
|
||||||
this.setPreviewData(previewJsonArray, raw);
|
this.setPreviewData(previewJsonArray, raw);
|
||||||
} else {
|
} else {
|
||||||
if (bodyObj.has("raw")) {
|
if (bodyObj.has("raw")) {
|
||||||
|
|
Loading…
Reference in New Issue