@@ -85,28 +85,28 @@ interface {{classname}} {
8585} }{ {#swagger2AnnotationLibrary} }{ {!
8686} } @Operation(
8787 tags = [{ {#tags} }"{ {{name} }}",{ {/tags} }],
88- summary = "{ {{ summary} }}",
88+ summary = "{ {#lambda.escapeDollar } } { {{ summary} }} { {/lambda.escapeDollar } }",
8989 operationId = "{ {{operationId} }}",
9090 description = """{ {{unescapedNotes} }}""",
9191 responses = [{ {#responses} }
92- ApiResponse(responseCode = "{ {{code} }}", description = "{ {{ message} }}"{ {#baseType} }, content = [Content({ {#isArray} }array = ArraySchema({ {/isArray} }schema = Schema(implementation = { {{baseType} }}::class)){ {#isArray} }){ {/isArray} }]{ {/baseType} }){ {^-last} },{ {/-last} }{ {/responses} }
92+ ApiResponse(responseCode = "{ {{code} }}", description = "{ {#lambda.escapeDollar } } { {{ message} }} { {/lambda.escapeDollar } }"{ {#baseType} }, content = [Content({ {#isArray} }array = ArraySchema({ {/isArray} }schema = Schema(implementation = { {{baseType} }}::class)){ {#isArray} }){ {/isArray} }]{ {/baseType} }){ {^-last} },{ {/-last} }{ {/responses} }
9393 ]{ {#hasAuthMethods} },
9494 security = [ { {#authMethods} }SecurityRequirement(name = "{ {name} }"{ {#isOAuth} }, scopes = [ { {#scopes} }"{ {scope} }"{ {^-last} }, { {/-last} }{ {/scopes} } ]{ {/isOAuth} }){ {^-last} },{ {/-last} }{ {/authMethods} } ]{ {/hasAuthMethods} }
9595 ){ {/swagger2AnnotationLibrary} }{ {#swagger1AnnotationLibrary} }
9696 @ApiOperation(
97- value = "{ {{ summary} }}",
97+ value = "{ {#lambda.escapeDollar } } { {{ summary} }} { {/lambda.escapeDollar } }",
9898 nickname = "{ {{operationId} }}",
99- notes = "{ {{ notes} }}"{ {#returnBaseType} },
99+ notes = "{ {#lambda.escapeDollar } } { {{ notes} }} { {/lambda.escapeDollar } }"{ {#returnBaseType} },
100100 response = { {{.} }}::class{ {/returnBaseType} }{ {#returnContainer} },
101101 responseContainer = "{ {{.} }}"{ {/returnContainer} }{ {#hasAuthMethods} },
102102 authorizations = [{ {#authMethods} }Authorization(value = "{ {name} }"{ {#isOAuth} }, scopes = [{ {#scopes} }AuthorizationScope(scope = "{ {scope} }", description = "{ {description} }"){ {^-last} }, { {/-last} }{ {/scopes} }]{ {/isOAuth} }){ {^-last} }, { {/-last} }{ {/authMethods} }]{ {/hasAuthMethods} }
103103 )
104104 @ApiResponses(
105- value = [{ {#responses} }ApiResponse(code = { {{code} }}, message = "{ {{ message} }}"{ {#baseType} }, response = { {{.} }}::class{ {/baseType} }{ {#containerType} }, responseContainer = "{ {{.} }}"{ {/containerType} }){ {^-last} }, { {/-last} }{ {/responses} }]
105+ value = [{ {#responses} }ApiResponse(code = { {{code} }}, message = "{ {#lambda.escapeDollar } } { {{ message} }} { {/lambda.escapeDollar } }"{ {#baseType} }, response = { {{.} }}::class{ {/baseType} }{ {#containerType} }, responseContainer = "{ {{.} }}"{ {/containerType} }){ {^-last} }, { {/-last} }{ {/responses} }]
106106 ){ {/swagger1AnnotationLibrary} }
107107 @RequestMapping(
108108 method = [RequestMethod.{ {httpMethod} }],
109- value = [PATH_{ {#lambda.uppercase} }{ {#lambda.snakecase} }{ {{operationId} }}{ {/lambda.snakecase} }{ {/lambda.uppercase} } /* "{ {#lambdaEscapeInNormalString } } { {{ path} }} { {/lambdaEscapeInNormalString } }" */]{ {#singleContentTypes} }{ {#hasProduces} },
109+ value = [PATH_{ {#lambda.uppercase} }{ {#lambda.snakecase} }{ {{operationId} }}{ {/lambda.snakecase} }{ {/lambda.uppercase} } /* "{ {{ path} }}" */]{ {#singleContentTypes} }{ {#hasProduces} },
110110 produces = [{ {#vendorExtensions.x-accepts} }"{ {{.} }}"{ {^-last} }, { {/-last} }{ {/vendorExtensions.x-accepts} }]{ {/hasProduces} }{ {#hasConsumes} },
111111 consumes = "{ {{vendorExtensions.x-content-type} }}"{ {/hasConsumes} }{ {/singleContentTypes} }{ {^singleContentTypes} }{ {#hasProduces} },
112112 produces = [{ {#produces} }"{ {{mediaType} }}"{ {^-last} }, { {/-last} }{ {/produces} }]{ {/hasProduces} }{ {#hasConsumes} },
@@ -131,7 +131,7 @@ interface {{classname}} {
131131 const val BASE_PATH: String = "{ {=<% %>= } }<%contextPath%><%={ { } }=%>"
132132 { {/useRequestMappingOnInterface} }
133133 { {#operation} }
134- const val PATH_{ {#lambda.uppercase} }{ {#lambda.snakecase} }{ {{operationId} }}{ {/lambda.snakecase} }{ {/lambda.uppercase} }: String = "{ {{ path} }}"
134+ const val PATH_{ {#lambda.uppercase} }{ {#lambda.snakecase} }{ {{operationId} }}{ {/lambda.snakecase} }{ {/lambda.uppercase} }: String = "{ {#lambdaEscapeInNormalString } } { {{ path} }} { {/lambdaEscapeInNormalString } }"
135135 { {/operation} }
136136 }
137137}
0 commit comments