From 310cd21f5a3924a1b8efcee1b987864daeb3b1bb Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 6 Dec 2022 17:40:35 +0100 Subject: [PATCH] Revert "dynamite: Stop handling array query parameters differently" This reverts commit 0c7bcec41d38e8a5ff40a66bfd174650b9d41433. --- packages/dynamite/lib/src/openapi_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index 3e965bc8..a2743b75 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -609,7 +609,7 @@ class OpenAPIBuilder implements Builder { break; case 'query': code.write( - "queryParameters['${parameter.name}'] = $value;", + "queryParameters['${parameter.name}${result is TypeResultList ? '[]' : ''}'] = $value;", ); break; case 'header':