修复导入api时解析swagger3 boolean类型bug

This commit is contained in:
saury 2024-10-16 17:45:45 +08:00 committed by Craftsman
parent 36019548ca
commit 07647b1535
1 changed files with 1 additions and 1 deletions

View File

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