mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
changed to use paramName instead of baseName to support the toParamName method
This commit is contained in:
parent
f1f466b69f
commit
c9397ce1e7
@ -26,7 +26,7 @@ class {{classname}} {
|
||||
|
||||
{{#requiredParamCount}}
|
||||
// verify required params are set
|
||||
(Set({{/requiredParamCount}}{{#requiredParams}} {{baseName}}{{#hasMore}}, {{/hasMore}}{{/requiredParams}}{{#requiredParamCount}}) - null).size match {
|
||||
(Set({{/requiredParamCount}}{{#requiredParams}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/requiredParams}}{{#requiredParamCount}}) - null).size match {
|
||||
case {{requiredParamCount}} => // all required values set
|
||||
case _ => throw new Exception("missing required params")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user