All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-wiremock.model.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
@file:Suppress(
    "RemoveRedundantQualifierName",
    "unused",
)

package {{modelPackage}}

import com.fasterxml.jackson.annotation.JsonProperty

{{#models}}
{{#model}}
{{#isEnum}}
enum class {{classname}} {
    {{#allowableValues}}
    {{#enumVars}}
    @JsonProperty(value = {{#lambda.doublequote}}{{{value}}}{{/lambda.doublequote}}) {{&name}},
    {{/enumVars}}
    {{/allowableValues}}
}
{{/isEnum}}
{{^isEnum}}
data class {{classname}}(
    {{#allVars}}
    @field:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}")
    val {{{name}}}: {{{dataType}}}{{^required}}?{{/required}}{{!
    !}}{{^required}} = {{^defaultValue}}null{{/defaultValue}}{{#defaultValue}}{{{.}}}{{/defaultValue}}{{/required}}{{!
    }}{{#required}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/required}},

    {{/allVars}}
)
{{/isEnum}}
{{/model}}
{{/models}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy