Skip to content

Commit bfe58eb

Browse files
Merge pull request #543 from appwrite/fix-kotlin-no-param-models
Fix models with only additional properties
2 parents 91e2b9b + 270ce74 commit bfe58eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/kotlin/src/main/kotlin/io/appwrite/models/Model.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.google.gson.annotations.SerializedName
66
/**
77
* {{ definition.description }}
88
*/
9-
{% if definition.properties | length == 0 %}
9+
{% if definition.properties | length == 0 and not definition.additionalProperties %}
1010
class {{ definition.name | caseUcfirst }} {}
1111
{% else %}
1212
data class {{ definition.name | caseUcfirst }}(

0 commit comments

Comments
 (0)