Skip to content

Commit 6e23e9a

Browse files
authored
fix: camelCase hwkc json keys (#935)
fix regression introduced in d2e22f3
1 parent 3e004e4 commit 6e23e9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/user-svc/internal/hwkc/models.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//nolint:tagliatelle // kc API uses camelCase
12
package hwkc
23

34
import "strings"
@@ -9,12 +10,12 @@ type User struct {
910
type Organization struct {
1011
ID *string `json:"id,omitempty"`
1112
Name *string `json:"name,omitempty"`
12-
DisplayName *string `json:"display_name,omitempty"`
13+
DisplayName *string `json:"displayName,omitempty"`
1314
Attributes OrganizationAttributes `json:"attributes,omitempty"`
1415
}
1516

1617
type OrganizationAttributes struct {
17-
IsPersonal []string `json:"is_personal"`
18+
IsPersonal []string `json:"isPersonal"`
1819
}
1920

2021
func (o *Organization) IsPersonal() bool {

0 commit comments

Comments
 (0)