Skip to content

Commit 270ce74

Browse files
committed
Account for additional properties when handling models with no attributes
1 parent 260e1a6 commit 270ce74

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)