Add "decimal" support (#7808)

* rename BigDecimal to decimal

* add isDecimal

* fix tests

* minor fixes

* fix mapping, update doc

* update test spec

* update c# samples
This commit is contained in:
William Cheng
2020-11-02 21:31:32 +08:00
committed by GitHub
parent ca6fcaf92a
commit 9377dbca56
68 changed files with 391 additions and 65 deletions

View File

@@ -73,6 +73,9 @@ class FormatTest {
if (data.hasOwnProperty('double')) {
obj['double'] = ApiClient.convertToType(data['double'], 'Number');
}
if (data.hasOwnProperty('decimal')) {
obj['decimal'] = ApiClient.convertToType(data['decimal'], 'Number');
}
if (data.hasOwnProperty('string')) {
obj['string'] = ApiClient.convertToType(data['string'], 'String');
}
@@ -137,6 +140,11 @@ FormatTest.prototype['float'] = undefined;
*/
FormatTest.prototype['double'] = undefined;
/**
* @member {Number} decimal
*/
FormatTest.prototype['decimal'] = undefined;
/**
* @member {String} string
*/