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; }