-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of Double data type seems not to be correct #14
Comments
Fixed in 795688a |
The fix 795688a generates different code for Double params. Instead of
the new generated code will read:
So my already generated (and modified) code had to be adopted manually. But I think, I will be the only one affected. It is the correct way, to fix the problem. |
Yes, it followed the same convention as parameters of type Integer or TDateTime. The conversion should happen in the generated code, it's not the job of |
Given a OpenAPI parameter like this:
the generated code uses the Double data type for
Fee
. This is than called in the following way:with
This does not seem to be correct. The code should not rely on implicit conversion as this will use the system locale.
At least in XE4 this wont even compile.
A resolution would be to have an explicit conversion.
The text was updated successfully, but these errors were encountered: