diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index 8b484da8..c2c04f89 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -1543,6 +1543,13 @@ TypeResult resolveType( break; case 'object': if (schema.properties == null) { + if (schema.additionalProperties ?? false) { + result = TypeResultMap( + 'Map', + TypeResultBase('dynamic'), + ); + break; + } result = TypeResultBase('dynamic'); break; }