forked from loafle/openapi-generator-original
add decimal mapping in perl client gen (#12897)
This commit is contained in:
parent
75895e18bc
commit
f05dd12b43
@ -127,6 +127,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
typeMapping.put("float", "double");
|
typeMapping.put("float", "double");
|
||||||
typeMapping.put("double", "double");
|
typeMapping.put("double", "double");
|
||||||
typeMapping.put("number", "double");
|
typeMapping.put("number", "double");
|
||||||
|
typeMapping.put("decimal", "double");
|
||||||
typeMapping.put("boolean", "boolean");
|
typeMapping.put("boolean", "boolean");
|
||||||
typeMapping.put("string", "string");
|
typeMapping.put("string", "string");
|
||||||
typeMapping.put("date", "DATE");
|
typeMapping.put("date", "DATE");
|
||||||
|
@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|||||||
**number** | **double** | |
|
**number** | **double** | |
|
||||||
**float** | **double** | | [optional]
|
**float** | **double** | | [optional]
|
||||||
**double** | **double** | | [optional]
|
**double** | **double** | | [optional]
|
||||||
**decimal** | [**Decimal**](Decimal.md) | | [optional]
|
**decimal** | **double** | | [optional]
|
||||||
**string** | **string** | | [optional]
|
**string** | **string** | | [optional]
|
||||||
**byte** | **string** | |
|
**byte** | **string** | |
|
||||||
**binary** | **string** | | [optional]
|
**binary** | **string** | | [optional]
|
||||||
|
@ -30,7 +30,6 @@ use Log::Any qw($log);
|
|||||||
use Date::Parse;
|
use Date::Parse;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
|
|
||||||
use WWW::OpenAPIClient::Object::Decimal;
|
|
||||||
|
|
||||||
use base ("Class::Accessor", "Class::Data::Inheritable");
|
use base ("Class::Accessor", "Class::Data::Inheritable");
|
||||||
|
|
||||||
@ -257,7 +256,7 @@ __PACKAGE__->method_documentation({
|
|||||||
read_only => '',
|
read_only => '',
|
||||||
},
|
},
|
||||||
'decimal' => {
|
'decimal' => {
|
||||||
datatype => 'Decimal',
|
datatype => 'double',
|
||||||
base_name => 'decimal',
|
base_name => 'decimal',
|
||||||
description => '',
|
description => '',
|
||||||
format => '',
|
format => '',
|
||||||
@ -335,7 +334,7 @@ __PACKAGE__->openapi_types( {
|
|||||||
'number' => 'double',
|
'number' => 'double',
|
||||||
'float' => 'double',
|
'float' => 'double',
|
||||||
'double' => 'double',
|
'double' => 'double',
|
||||||
'decimal' => 'Decimal',
|
'decimal' => 'double',
|
||||||
'string' => 'string',
|
'string' => 'string',
|
||||||
'byte' => 'string',
|
'byte' => 'string',
|
||||||
'binary' => 'string',
|
'binary' => 'string',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user