forked from loafle/openapi-generator-original
Merge pull request #2399 from wing328/perl_doc_default_value
[Perl] add default value to docstring in perl
This commit is contained in:
commit
04e97e3fd7
@ -58,7 +58,7 @@ sub new {
|
|||||||
#
|
#
|
||||||
# {{{summary}}}
|
# {{{summary}}}
|
||||||
#
|
#
|
||||||
{{#allParams}}# @param {{dataType}} ${{paramName}} {{description}} {{#required}}(required){{/required}}{{^required}}(optional){{/required}}
|
{{#allParams}}# @param {{dataType}} ${{paramName}} {{description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{
|
{
|
||||||
my $params = {
|
my $params = {
|
||||||
|
@ -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: 2016-03-17T11:28:12.297+08:00
|
- Build date: 2016-03-17T14:27:04.268+08:00
|
||||||
- Build package: class io.swagger.codegen.languages.PerlClientCodegen
|
- Build package: class io.swagger.codegen.languages.PerlClientCodegen
|
||||||
- Codegen version:
|
- Codegen version:
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ sub delete_pet {
|
|||||||
#
|
#
|
||||||
# Finds Pets by status
|
# Finds Pets by status
|
||||||
#
|
#
|
||||||
# @param ARRAY[string] $status Status values that need to be considered for query (optional)
|
# @param ARRAY[string] $status Status values that need to be considered for query (optional, default to available)
|
||||||
{
|
{
|
||||||
my $params = {
|
my $params = {
|
||||||
'status' => {
|
'status' => {
|
||||||
|
@ -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 => '2016-03-17T11:28:12.297+08:00',
|
generated_date => '2016-03-17T14:27:04.268+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: 2016-03-17T11:28:12.297+08:00
|
=item Build date: 2016-03-17T14:27:04.268+08:00
|
||||||
|
|
||||||
=item Build package: class io.swagger.codegen.languages.PerlClientCodegen
|
=item Build package: class io.swagger.codegen.languages.PerlClientCodegen
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ sub delete_order {
|
|||||||
#
|
#
|
||||||
# Finds orders by status
|
# Finds orders by status
|
||||||
#
|
#
|
||||||
# @param string $status Status value that needs to be considered for query (optional)
|
# @param string $status Status value that needs to be considered for query (optional, default to placed)
|
||||||
{
|
{
|
||||||
my $params = {
|
my $params = {
|
||||||
'status' => {
|
'status' => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user