From 1dfdeaff591f6e5ab1b9dccea276a3693531bd77 Mon Sep 17 00:00:00 2001 From: ErikBooijMB <118971329+ErikBooijMB@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:20:01 +0200 Subject: [PATCH] Fix missing newline for file array in go-server/controller-api.mustache (#16787) --- .../src/main/resources/go-server/controller-api.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache b/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache index 00fec257d6e8..5012d68d1287 100644 --- a/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache +++ b/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache @@ -362,7 +362,8 @@ func (c *{{classname}}Controller) {{nickname}}(w http.ResponseWriter, r *http.Re {{/isQueryParam}} {{#isFormParam}} {{#isFile}}{{#isArray}} - {{paramName}}Param, err := ReadFormFilesToTempFiles(r, "{{baseName}}"){{/isArray}}{{^isArray}} + {{paramName}}Param, err := ReadFormFilesToTempFiles(r, "{{baseName}}") + {{/isArray}}{{^isArray}} {{paramName}}Param, err := ReadFormFileToTempFile(r, "{{baseName}}") {{/isArray}} if err != nil {