From bc6da8c082625ae0b9c23e4275038c71a18e256d Mon Sep 17 00:00:00 2001 From: Michael Czolko Date: Mon, 14 Dec 2020 09:10:26 +0100 Subject: [PATCH] Update apiController.mustache (#7248) If the delegate is optional, put it as optional in constructor --- .../src/main/resources/kotlin-spring/apiController.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/apiController.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/apiController.mustache index 15ca438bffa..9d3f568d7c8 100644 --- a/modules/openapi-generator/src/main/resources/kotlin-spring/apiController.mustache +++ b/modules/openapi-generator/src/main/resources/kotlin-spring/apiController.mustache @@ -11,7 +11,7 @@ import java.util.Optional; <%={{ }}=%> {{#operations}} class {{classname}}Controller( - @org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate + @org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate? ) : {{classname}} { private val delegate: {{classname}}Delegate