elm.paramToString.mustache Maven / Gradle / Ivy
{{#lambda.removeWhitespace}}
{{#isArray}}(String.join "," << List.map {{#isEnum}}stringFrom{{#datatypeWithEnum}}{{datatypeWithEnum}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{dataType}}{{/datatypeWithEnum}}{{/isEnum}}{{^isEnum}} {{#items}}{{>paramToString}}{{/items}}{{/isEnum}}){{/isArray}}
{{^isArray}}
{{^isEnum}}
{{^isUuid}}
{{#isString}}identity{{/isString}}
{{#isBinary}}identity{{/isBinary}}
{{#isByteArray}}identity{{/isByteArray}}
{{/isUuid}}
{{/isEnum}}
{{#isBoolean}}(\val -> if val then "true" else "false"){{/isBoolean}}
{{#isDateTime}}Api.Time.dateTimeToString{{/isDateTime}}
{{#isDate}}Api.Time.dateToString{{/isDate}}
{{#isInteger}}String.fromInt{{/isInteger}}
{{#isLong}}String.fromInt{{/isLong}}
{{#isNumber}}String.fromFloat{{/isNumber}}
{{#isFloat}}String.fromFloat{{/isFloat}}
{{#isDouble}}String.fromFloat{{/isDouble}}
{{#allowableValues}}{{^isEnum}}Api.Data.{{/isEnum}}stringFrom{{#datatypeWithEnum}}{{datatypeWithEnum}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{dataType}}{{/datatypeWithEnum}}{{/allowableValues}}
{{#isUuid}}Uuid.toString{{/isUuid}}
{{/isArray}}
{{/lambda.removeWhitespace}}