add decimal mapping in perl client gen (#12897)

This commit is contained in:
William Cheng 2022-07-17 13:10:53 +08:00 committed by GitHub
parent 75895e18bc
commit f05dd12b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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]

View File

@ -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',