-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Milestone
Description
Hi,
I am using codegen 2.3.0.
In file ApiClient, the Method
public string ParameterToString(object obj)
contains an error at row:
swagger-codegen/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache
Line 311 in c6b6249
return Convert.ToString (obj); |
If I use a localization different from "US" and I have a double value this row returns a number with a comma "," instead dot "."
I think it should be better to return always the "dotted" number adding another "else if" condition:
else if (obj is double || obj is decimal)
{
return Convert.ToString(obj, new CultureInfo("en-US"));
}
Thanks,
lunat