From 71828295e8974c20d43f061f3a57a0416765b96b Mon Sep 17 00:00:00 2001 From: Hassan Ahmed Date: Thu, 21 Dec 2023 15:02:09 +0100 Subject: [PATCH] feat: Retrigger release for CLI & GO This PR attempts to trigger release for CLI with Go. fix(CLI): retrigger release for CLI feat(GO): retrigger release for GO --- openapi-generator/templates/go/client.mustache | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openapi-generator/templates/go/client.mustache b/openapi-generator/templates/go/client.mustache index d8efda7f..ebc695ee 100644 --- a/openapi-generator/templates/go/client.mustache +++ b/openapi-generator/templates/go/client.mustache @@ -166,6 +166,8 @@ func parameterToJson(obj interface{}) (string, error) { // helper for serializing and setting mapped parameters request body func serializeMapParams(key string, value interface{}, localParams url.Values) url.Values { if reflect.TypeOf(value).Kind() == reflect.Map { + + // since we allow values of type interface, type assertion is necessary for k, v := range value.(map[string]interface{}) { paramKeyName := fmt.Sprintf("%s[%s]", key, k) serializeMapParams(paramKeyName, v, localParams)