Skip to content

Commit bc6da8c

Browse files
authored
Update apiController.mustache (#7248)
If the delegate is optional, put it as optional in constructor
1 parent 0cbf064 commit bc6da8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/kotlin-spring/apiController.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import java.util.Optional;
1111
<%={{ }}=%>
1212
{{#operations}}
1313
class {{classname}}Controller(
14-
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate
14+
@org.springframework.beans.factory.annotation.Autowired(required = false) delegate: {{classname}}Delegate?
1515
) : {{classname}} {
1616
private val delegate: {{classname}}Delegate
1717

0 commit comments

Comments
 (0)