Merge pull request #1780 from wing328/perl_fix_datetime

[Perl] fix DateTime mapping
This commit is contained in:
wing328 2015-12-30 14:36:45 +08:00
commit 9782bf8981
3 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("boolean", "boolean"); typeMapping.put("boolean", "boolean");
typeMapping.put("string", "string"); typeMapping.put("string", "string");
typeMapping.put("date", "DateTime"); typeMapping.put("date", "DateTime");
typeMapping.put("dateTime", "DateTime"); typeMapping.put("DateTime", "DateTime");
typeMapping.put("password", "string"); typeMapping.put("password", "string");
typeMapping.put("array", "ARRAY"); typeMapping.put("array", "ARRAY");
typeMapping.put("map", "HASH"); typeMapping.put("map", "HASH");

View File

@ -8,7 +8,7 @@ WWW::SwaggerClient::Role - a Moose role for the Swagger Petstore
Automatically generated by the Perl Swagger Codegen project: Automatically generated by the Perl Swagger Codegen project:
- Build date: 2015-12-28T16:30:58.036+08:00 - Build date: 2015-12-29T16:27:28.775+08:00
- Build package: class io.swagger.codegen.languages.PerlClientCodegen - Build package: class io.swagger.codegen.languages.PerlClientCodegen
- Codegen version: - Codegen version:

View File

@ -37,7 +37,7 @@ has version_info => ( is => 'ro',
default => sub { { default => sub { {
app_name => 'Swagger Petstore', app_name => 'Swagger Petstore',
app_version => '1.0.0', app_version => '1.0.0',
generated_date => '2015-12-28T16:30:58.036+08:00', generated_date => '2015-12-29T16:27:28.775+08:00',
generator_class => 'class io.swagger.codegen.languages.PerlClientCodegen', generator_class => 'class io.swagger.codegen.languages.PerlClientCodegen',
} }, } },
documentation => 'Information about the application version and the codegen codebase version' documentation => 'Information about the application version and the codegen codebase version'
@ -103,7 +103,7 @@ Automatically generated by the Perl Swagger Codegen project:
=over 4 =over 4
=item Build date: 2015-12-28T16:30:58.036+08:00 =item Build date: 2015-12-29T16:27:28.775+08:00
=item Build package: class io.swagger.codegen.languages.PerlClientCodegen =item Build package: class io.swagger.codegen.languages.PerlClientCodegen