File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments