forked from loafle/openapi-generator-original
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