From 68abbb34b1a0fae2efa79052c31c90e7e3565c97 Mon Sep 17 00:00:00 2001 From: Thibault Duperron Date: Wed, 3 Nov 2021 03:05:52 +0100 Subject: [PATCH] [Kotlin][Spring] Fix required parameter in tests (#10705) 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}})