Skip to content

Commit d77aee4

Browse files
authored
fix(model): adjust json struct tags for Cluster and ScyllaVersion (#214)
1 parent 9b7e603 commit d77aee4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/scylla/model/model.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type CloudProviders struct {
1717
}
1818

1919
type ScyllaVersion struct {
20-
VersionID int64 `json:"id"`
20+
VersionID int64 `json:"versionId"`
2121
Version string `json:"version"`
2222
Description string `json:"description"`
2323
NewCluster string `json:"newCluster"`
@@ -117,8 +117,8 @@ type Cluster struct {
117117
ClusterName string `json:"clusterName"`
118118
Status string `json:"status"`
119119
InstanceID int64 `json:"instanceId"`
120-
CloudProviderID int64 `json:"cloudProviderID"`
121-
ScyllaVersionID int64 `json:"scyllaVersionID"`
120+
CloudProviderID int64 `json:"cloudProviderId"`
121+
ScyllaVersionID int64 `json:"scyllaVersionId"`
122122
UserAPIInterface string `json:"userApiInterface"`
123123
PricingModel int64 `json:"pricingModel"`
124124
MaxAllowedCIDRRange int64 `json:"maxAllowedCidrRange"`

0 commit comments

Comments
 (0)