{{^formParams.isEmpty}}

          formFields({{#formParams}}"{{baseName}}".as[{{#isPrimitiveType}}{{dataType}}{{/isPrimitiveType}}{{^isPrimitiveType}}String{{/isPrimitiveType}}]{{^required}}.?{{#vendorExtensions.x-has-default-value}}({{defaultValue}}){{/vendorExtensions.x-has-default-value}}{{/required}}{{^-last}}, {{/-last}}{{/formParams}}) { ({{#formParams}}{{paramName}}{{^-last}}, {{/-last}}{{/formParams}}) =>{{/formParams.isEmpty}}
            {{#bodyParam}}{{^isPrimitiveType}}entity(as[{{dataType}}]){ {{paramName}} =>
              {{/isPrimitiveType}}{{/bodyParam}}{{classVarName}}Service.{{operationId}}({{#allParams}}{{paramName}} = {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{#bodyParam}}{{^isPrimitiveType}}
            }{{/isPrimitiveType}}{{/bodyParam}}{{^formParams.isEmpty}}
          }{{/formParams.isEmpty}}