From ac9e1d67af0df394052a8879a76b8f25909854fe Mon Sep 17 00:00:00 2001 From: Theo Lee Date: Fri, 27 Oct 2023 10:04:47 +0800 Subject: [PATCH] Revert #123 --- swagger_parser/lib/src/parser/parser.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swagger_parser/lib/src/parser/parser.dart b/swagger_parser/lib/src/parser/parser.dart index e6d8c7c4..bb3a8dce 100644 --- a/swagger_parser/lib/src/parser/parser.dart +++ b/swagger_parser/lib/src/parser/parser.dart @@ -994,8 +994,7 @@ class OpenApiParser { // To detect is this entity is map or not final mapType = map[_typeConst].toString() == _objectConst && - map.containsKey(_additionalPropertiesConst) && - import == null + map.containsKey(_additionalPropertiesConst) ? 'string' : null; final defaultValue = map[_defaultConst]?.toString();