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();