diff --git a/openapi-generator/templates/go/client.mustache b/openapi-generator/templates/go/client.mustache index ebc695ee..d8efda7f 100644 --- a/openapi-generator/templates/go/client.mustache +++ b/openapi-generator/templates/go/client.mustache @@ -166,8 +166,6 @@ 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)