Skip to content

Commit

Permalink
Updated mustache templates (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
charbelmkh authored Dec 4, 2023
1 parent d22a7ac commit 4f1b0d8
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
*/
{{#hasParams}}@DataApi {{/hasParams}}class {{{operationIdCamelCase}}} internal constructor(
{{#allParams}}
{{#isModel}}
val {{{paramName}}}: {{modelPackage}}.{{{dataType}}}{{^required}}? = null{{/required}},{{/isModel}} {{^isModel}}
val {{{paramName}}}: {{{dataType}}}{{^required}}? = null{{/required}}, {{/isModel}}

val {{{paramName}}}: {{{dataType}}}{{^required}}? = null{{/required}},

{{#isMultipart}}
{{#isFormParam}}
Expand All @@ -35,7 +37,9 @@
class Builder {
{{#allParams}}
var {{{paramName}}}: {{{dataType}}}? = null
{{#isModel}}
var {{{paramName}}}: {{modelPackage}}.{{{dataType}}}? = null {{/isModel}} {{^isModel}}
var {{{paramName}}}: {{{dataType}}}? = null {{/isModel}}
{{#isMultipart}}
{{#isFormParam}}
{{^isFile}}
Expand Down Expand Up @@ -92,4 +96,4 @@
@JvmSynthetic // Hide from Java callers who should use Builder
fun {{{operationIdCamelCase}}}(initializer: {{{operationIdCamelCase}}}.Builder.() -> Unit): {{{operationIdCamelCase}}} {
return {{{operationIdCamelCase}}}.Builder().apply(initializer).build()
}
}

0 comments on commit 4f1b0d8

Please sign in to comment.