forked from loafle/openapi-generator-original
add nullable support to perl api parameter (#1690)
This commit is contained in:
@@ -66,6 +66,7 @@ sub {{operationId}} {
|
||||
my ($self, %args) = @_;
|
||||
|
||||
{{#allParams}}
|
||||
{{^isNullable}}
|
||||
{{#required}}
|
||||
# verify the required parameter '{{paramName}}' is set
|
||||
unless (exists $args{'{{paramName}}'}) {
|
||||
@@ -73,6 +74,7 @@ sub {{operationId}} {
|
||||
}
|
||||
|
||||
{{/required}}
|
||||
{{/isNullable}}
|
||||
{{/allParams}}
|
||||
# parse inputs
|
||||
my $_resource_path = '{{{path}}}';
|
||||
|
||||
Reference in New Issue
Block a user