add example to codegen parameter

This commit is contained in:
wing328
2016-03-06 01:24:41 +08:00
parent 7d642b28b9
commit e5ed295a78
6 changed files with 137 additions and 6 deletions

View File

@@ -103,6 +103,13 @@ __PACKAGE__->class_documentation({description => '',
} );
__PACKAGE__->method_documentation({
'tags' => {
datatype => 'ARRAY[Tag]',
base_name => 'tags',
description => '',
format => '',
read_only => '',
},
'id' => {
datatype => 'int',
base_name => 'id',
@@ -117,6 +124,13 @@ __PACKAGE__->method_documentation({
format => '',
read_only => '',
},
'status' => {
datatype => 'string',
base_name => 'status',
description => 'pet status in the store',
format => '',
read_only => '',
},
'name' => {
datatype => 'string',
base_name => 'name',
@@ -124,19 +138,32 @@ __PACKAGE__->method_documentation({
format => '',
read_only => '',
},
'photo_urls' => {
datatype => 'ARRAY[string]',
base_name => 'photoUrls',
description => '',
format => '',
read_only => '',
},
});
__PACKAGE__->swagger_types( {
'tags' => 'ARRAY[Tag]',
'id' => 'int',
'category' => 'object',
'name' => 'string'
'status' => 'string',
'name' => 'string',
'photo_urls' => 'ARRAY[string]'
} );
__PACKAGE__->attribute_map( {
'tags' => 'tags',
'id' => 'id',
'category' => 'category',
'name' => 'name'
'status' => 'status',
'name' => 'name',
'photo_urls' => 'photoUrls'
} );
__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});

View File

@@ -37,7 +37,7 @@ has version_info => ( is => 'ro',
default => sub { {
app_name => 'Swagger Petstore',
app_version => '1.0.0',
generated_date => '2016-02-11T18:16:24.249+08:00',
generated_date => '2016-03-05T22:31:46.328+08:00',
generator_class => 'class io.swagger.codegen.languages.PerlClientCodegen',
} },
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
=item Build date: 2016-02-11T18:16:24.249+08:00
=item Build date: 2016-03-05T22:31:46.328+08:00
=item Build package: class io.swagger.codegen.languages.PerlClientCodegen