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("double", "double");
|
||||
typeMapping.put("number", "double");
|
||||
typeMapping.put("decimal", "double");
|
||||
typeMapping.put("boolean", "boolean");
|
||||
typeMapping.put("string", "string");
|
||||
typeMapping.put("date", "DATE");
|
||||
|
@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**number** | **double** | |
|
||||
**float** | **double** | | [optional]
|
||||
**double** | **double** | | [optional]
|
||||
**decimal** | [**Decimal**](Decimal.md) | | [optional]
|
||||
**decimal** | **double** | | [optional]
|
||||
**string** | **string** | | [optional]
|
||||
**byte** | **string** | |
|
||||
**binary** | **string** | | [optional]
|
||||
|
@ -30,7 +30,6 @@ use Log::Any qw($log);
|
||||
use Date::Parse;
|
||||
use DateTime;
|
||||
|
||||
use WWW::OpenAPIClient::Object::Decimal;
|
||||
|
||||
use base ("Class::Accessor", "Class::Data::Inheritable");
|
||||
|
||||
@ -257,7 +256,7 @@ __PACKAGE__->method_documentation({
|
||||
read_only => '',
|
||||
},
|
||||
'decimal' => {
|
||||
datatype => 'Decimal',
|
||||
datatype => 'double',
|
||||
base_name => 'decimal',
|
||||
description => '',
|
||||
format => '',
|
||||
@ -335,7 +334,7 @@ __PACKAGE__->openapi_types( {
|
||||
'number' => 'double',
|
||||
'float' => 'double',
|
||||
'double' => 'double',
|
||||
'decimal' => 'Decimal',
|
||||
'decimal' => 'double',
|
||||
'string' => 'string',
|
||||
'byte' => 'string',
|
||||
'binary' => 'string',
|
||||
|
Loading…
x
Reference in New Issue
Block a user