mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
add nullable support to perl api parameter (#1690)
This commit is contained in:
parent
d7d994620c
commit
81cf611aa4
@ -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}}}';
|
||||
|
Loading…
Reference in New Issue
Block a user