From 31b8a23f99aa45388baddba1b341ebb1d97fd14e Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Thu, 12 May 2022 16:53:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20idea?= =?UTF-8?q?=20=E6=8F=92=E4=BB=B6=E5=AF=BC=E5=85=A5=20json-schema=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/parse/ApiImportAbstractParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java b/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java index de88522a18..3ac7f6cf4f 100644 --- a/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java +++ b/backend/src/main/java/io/metersphere/api/parse/ApiImportAbstractParser.java @@ -172,7 +172,7 @@ public abstract class ApiImportAbstractParser implements ApiImportParser { MsHTTPSamplerProxy request = buildRequest(name, path, method); if (StringUtils.isNotBlank(jsonSchema)) { request.getBody().setJsonSchema(JSONObject.parseObject(jsonSchema)); - request.getBody().setFormat("Raw"); + request.getBody().setFormat("JSON-SCHEMA"); } return request; }