mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 07:31:01 +00:00
Merge pull request #2397 from mmschettler/master
Fix c# client float property default values
This commit is contained in:
commit
ccd4a78514
@ -435,7 +435,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
} else if (p instanceof FloatProperty) {
|
} else if (p instanceof FloatProperty) {
|
||||||
FloatProperty dp = (FloatProperty) p;
|
FloatProperty dp = (FloatProperty) p;
|
||||||
if (dp.getDefault() != null) {
|
if (dp.getDefault() != null) {
|
||||||
return dp.getDefault().toString();
|
return String.format("%1$sF", dp.getDefault());
|
||||||
}
|
}
|
||||||
} else if (p instanceof IntegerProperty) {
|
} else if (p instanceof IntegerProperty) {
|
||||||
IntegerProperty dp = (IntegerProperty) p;
|
IntegerProperty dp = (IntegerProperty) p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user