From 24c16294f2a84a7e53b7f506c2337af0673de2e3 Mon Sep 17 00:00:00 2001 From: Thibault Duperron <zomzog@gmail.com> Date: Tue, 26 Oct 2021 23:12:27 +0200 Subject: [PATCH] [Kotlin][Spring] Fix required parameter in tests Should fix #10704 --- .../src/main/resources/kotlin-spring/api_test.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/api_test.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/api_test.mustache index ad8b33bfbff..8cca99bb5b5 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/api_test.mustache @@ -27,7 +27,7 @@ class {{classname}}Test { @Test fun {{operationId}}Test() {{#reactive}}= runBlockingTest {{/reactive}}{ {{#allParams}} - val {{paramName}}:{{{dataType}}}? = null + val {{paramName}}:{{>optionalDataType}} = TODO() {{/allParams}} val response: ResponseEntity<{{>returnTypes}}> = api.{{operationId}}({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) -- GitLab