From c31736561cef86d2aeee8d39bec6d0803a43ab0e Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 27 Oct 2022 18:26:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95swagger3?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=B8=A2=E5=A4=B1=E9=9D=9E=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=9A=84=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001017816 --user=郭雨琦 --- .../metersphere/api/dto/definition/parse/Swagger3Parser.java | 3 --- 1 file changed, 3 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 7c2e3e6bd7..89d87a43be 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 @@ -478,9 +478,6 @@ public class Swagger3Parser extends SwaggerAbstractParser { private JsonSchemaItem parseSchema(Schema schema, Set refSet) { if (schema == null) return null; - if (StringUtils.isBlank(schema.get$ref()) && schema.getProperties() == null && refSet.isEmpty() && schema.getExample() == null) { - return null; - } JsonSchemaItem item = new JsonSchemaItem(); if (schema.getRequired() != null) { item.setRequired(schema.getRequired());