Skip to content

Commit

Permalink
encode path parameters in Java SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Aug 6, 2024
1 parent d646152 commit cc6d173
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class JavaHttpRequestRenderer constructor(override val vrapTypeProvider: VrapTyp
pathArguments.forEach { stringFormat = stringFormat.replace(it, "%s") }
val stringFormatArgs = pathArguments
.map { it.replace("{", "").replace("}", "") }
.map { "this.$it" }
.map { "encodePathParam(this.$it)" }
.joinToString(separator = ", ")
stringFormat = stringFormat.trimStart('/')
val bodyName : String? = if(this.bodies != null && this.bodies.isNotEmpty()){
Expand Down

0 comments on commit cc6d173

Please sign in to comment.