Skip to content

Commit c2e3e60

Browse files
committed
fix(models): for certificate StoreTypes the DependsOn property must be allowed to be null because Command treats empty string and null as different values.
1 parent e932e22 commit c2e3e60

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/Keyfactor/keyfactor-go-client
22

3-
go 1.18
3+
go 1.20
44

55
require (
6-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1
6+
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2
77
github.com/spbsoluble/go-pkcs12 v0.3.3
88
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1 h1:cs8hhvsY3MJ2o1K11HLTRCjRT8SbsKhhi73Y4By2CI0=
2-
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.1/go.mod h1:Z5pSk8YFGXHbKeQ1wTzVN8A4P/fZmtAwqu3NgBHbDOs=
1+
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2 h1:caLlzFCz2L4Dth/9wh+VlypFATmOMmCSQkCPKOKMxw8=
2+
github.com/Keyfactor/keyfactor-go-client-sdk v1.0.2/go.mod h1:Z5pSk8YFGXHbKeQ1wTzVN8A4P/fZmtAwqu3NgBHbDOs=
33
github.com/spbsoluble/go-pkcs12 v0.3.3 h1:3nh7IKn16RDpmrSMtOu1JvbB0XHYq1j+IsICdU1c7J4=
44
github.com/spbsoluble/go-pkcs12 v0.3.3/go.mod h1:MAxKIUEIl/QVcua/I1L4Otyxl9UvLCCIktce2Tjz6Nw=
55
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 h1:CCriYyAfq1Br1aIYettdHZTy8mBTIPo7We18TuO/bak=

v2/api/store_type_models.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ type StoreTypePropertyDefinitionGeneric struct {
5858
Name string `json:"Name"`
5959
DisplayName string `json:"DisplayName"`
6060
Type string `json:"Type"`
61-
DependsOn string `json:"DependsOn"`
61+
DependsOn interface{} `json:"DependsOn"`
6262
DefaultValue interface{} `json:"DefaultValue"`
6363
Required bool `json:"Required"`
6464
}
6565

6666
type StoreTypePropertyDefinition struct {
67-
StoreTypeID int `json:"StoreTypeId;omitempty"`
67+
StoreTypeID int `json:"StoreTypeId"`
6868
Name string `json:"Name"`
6969
DisplayName string `json:"DisplayName"`
7070
Type string `json:"Type"`
71-
DependsOn string `json:"DependsOn"`
71+
DependsOn interface{} `json:"DependsOn"`
7272
DefaultValue interface{} `json:"DefaultValue"`
7373
Required bool `json:"Required"`
7474
}

0 commit comments

Comments
 (0)