From 5145fbb093a86a510fa68a6cc26fb53b5f87e335 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 12 Jul 2022 13:29:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20sw?= =?UTF-8?q?agger3=E5=AF=BC=E5=85=A5=E5=AF=B9json=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --bug=1014753 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014753 --- .../api/dto/definition/parse/Swagger3Parser.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/parse/Swagger3Parser.java b/backend/src/main/java/io/metersphere/api/dto/definition/parse/Swagger3Parser.java index 7ca7b0a87a..3b682bf9ac 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/parse/Swagger3Parser.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/parse/Swagger3Parser.java @@ -477,14 +477,6 @@ public class Swagger3Parser extends SwaggerAbstractParser { } else if (schema instanceof ObjectSchema) { item.setType("object"); item.setProperties(parseSchemaProperties(schema, refSet)); - } else if (schema instanceof StringSchema) { - item.setType("string"); - } else if (schema instanceof IntegerSchema) { - item.setType("integer"); - } else if (schema instanceof NumberSchema) { - item.setType("number"); - } else if (schema instanceof BooleanSchema) { - item.setType("boolean"); } else { return null; }