Skip to content

Commit

Permalink
use invariantculture for formatting decimal query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Aug 31, 2023
1 parent 0a0acf7 commit 6dc29e0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,11 @@ class CsharpHttpRequestRenderer constructor(override val vrapTypeProvider: VrapT
return "$fieldName.JsonName"
if(type == "string")
return fieldName
else
if(type == "decimal" || type == "int" || type == "long") {
return "$fieldName.ToString(CultureInfo.InvariantCulture)"
}
else
return "$fieldName.ToString()"
}

private fun Method.queryParamsGetters() : String = this.queryParameters
Expand Down

0 comments on commit 6dc29e0

Please sign in to comment.