From 07647b1535c7314d43b44562c0ba206cbbf8cc84 Mon Sep 17 00:00:00 2001 From: saury <55784334+sauryniu@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5api?= =?UTF-8?q?=E6=97=B6=E8=A7=A3=E6=9E=90swagger3=20boolean=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/parser/api/dataimport/Swagger3ParserApiDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/Swagger3ParserApiDefinition.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/Swagger3ParserApiDefinition.java index 06c101a2e4..53355f3ba5 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/Swagger3ParserApiDefinition.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/api/dataimport/Swagger3ParserApiDefinition.java @@ -769,7 +769,7 @@ public class Swagger3ParserApiDefinition extends HttpApiDefinitionImportAbstract private JsonSchemaItem parseBoolean(BooleanSchema booleanSchema) { JsonSchemaItem jsonSchemaItem = parseSchemaItem(booleanSchema); - jsonSchemaItem.setType(PropertyConstant.NUMBER); + jsonSchemaItem.setType(PropertyConstant.BOOLEAN); return jsonSchemaItem; }