Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: deprecated to kotlin template
  • Loading branch information
kai687 committed Apr 1, 2025
commit 5aa46b2fbe7860060b096068cb6cd4a5df8bc875
5 changes: 4 additions & 1 deletion templates/kotlin/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class {{classname}}(
require(region == null || region in allowedRegions) { "`region` must be one of the following: ${allowedRegions.joinToString()}" }
{{/fallbackToAliasHost}}
val url = {{#fallbackToAliasHost}}if (region == null) "{{{hostWithFallback}}}" else {{/fallbackToAliasHost}} "{{{hostForKotlin}}}"
listOf(Host(url))
listOf(Host(url))
{{/hasRegionalHost}}
{{#hostsWithoutVariables.size}}
listOf(
Expand All @@ -70,6 +70,9 @@ public class {{classname}}(
* - {{.}}
{{/x-acl}}
{{/vendorExtensions}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
{{#allParams}}
* @param {{{paramName}}} {{{description}}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
{{/allParams}}
Expand Down