Skip to content

Commit 2c6ac2a

Browse files
committed
cleanup deprecated
1 parent 823d517 commit 2c6ac2a

File tree

1 file changed

+2
-2
lines changed
  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter

1 file changed

+2
-2
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter/ApiConverter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,11 @@ class ApiConverter(
303303
}
304304

305305
private fun getInlineRequestBodyName(path: String, method: HttpMethod): String {
306-
return toClass(path) + method.method.capitalize() + "RequestBody"
306+
return toClass(path) + method.method.replaceFirstChar { it.uppercase() } + "RequestBody"
307307
}
308308

309309
private fun getInlineResponseName(path: String, method: HttpMethod, httpStatus: String): String {
310-
return toClass(path) + method.method.capitalize() + "Response" + httpStatus
310+
return toClass(path) + method.method.replaceFirstChar { it.uppercase() } + "Response" + httpStatus
311311
}
312312

313313
private fun isExcluded(path: String, method: HttpMethod): Boolean {

0 commit comments

Comments
 (0)