diff --git a/cmd/store/list_test.go b/cmd/store/list_test.go index 7e7cb0e..dbc2fbb 100644 --- a/cmd/store/list_test.go +++ b/cmd/store/list_test.go @@ -120,7 +120,7 @@ func TestListStoresSinglePage(t *testing.T) { t.Error(err) } - expectedOutput := `{"continuation_token":"","stores":[{"created_at":"2009-11-10T23:00:00Z","deleted_at":"0001-01-01T00:00:00Z","id":"12345","name":"foo","updated_at":"2009-11-10T23:00:00Z"}]}` //nolint:lll + expectedOutput := `{"continuation_token":"","stores":[{"created_at":"2009-11-10T23:00:00Z","id":"12345","name":"foo","updated_at":"2009-11-10T23:00:00Z"}]}` //nolint:lll outputTxt, err := json.Marshal(output) if err != nil { @@ -204,7 +204,7 @@ func TestListStoresMultiPage(t *testing.T) { t.Error(err) } - expectedOutput := `{"continuation_token":"","stores":[{"created_at":"2009-11-10T22:00:00Z","deleted_at":"0001-01-01T00:00:00Z","id":"abcde","name":"moo","updated_at":"2009-11-10T22:00:00Z"},{"created_at":"2009-11-10T23:00:00Z","deleted_at":"0001-01-01T00:00:00Z","id":"12345","name":"foo","updated_at":"2009-11-10T23:00:00Z"}]}` //nolint:lll + expectedOutput := `{"continuation_token":"","stores":[{"created_at":"2009-11-10T22:00:00Z","id":"abcde","name":"moo","updated_at":"2009-11-10T22:00:00Z"},{"created_at":"2009-11-10T23:00:00Z","id":"12345","name":"foo","updated_at":"2009-11-10T23:00:00Z"}]}` //nolint:lll outputTxt, err := json.Marshal(output) if err != nil { @@ -258,7 +258,7 @@ func TestListStoresMultiPageMaxPage(t *testing.T) { t.Error(err) } - expectedOutput := `{"continuation_token":"","stores":[{"created_at":"2009-11-10T22:00:00Z","deleted_at":"0001-01-01T00:00:00Z","id":"abcde","name":"moo","updated_at":"2009-11-10T22:00:00Z"}]}` //nolint:lll + expectedOutput := `{"continuation_token":"","stores":[{"created_at":"2009-11-10T22:00:00Z","id":"abcde","name":"moo","updated_at":"2009-11-10T22:00:00Z"}]}` //nolint:lll outputTxt, err := json.Marshal(output) if err != nil { diff --git a/go.mod b/go.mod index a49102a..beefd90 100644 --- a/go.mod +++ b/go.mod @@ -10,13 +10,13 @@ require ( github.com/nwidger/jsoncolor v0.3.2 github.com/oklog/ulid/v2 v2.1.0 github.com/openfga/api/proto v0.0.0-20231212010208-061d8d8d395f - github.com/openfga/go-sdk v0.3.0 + github.com/openfga/go-sdk v0.3.3 github.com/openfga/language/pkg/go v0.0.0-20231214002416-cca4c4312106 github.com/openfga/openfga v1.4.0 github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 - github.com/spf13/viper v1.18.1 - google.golang.org/protobuf v1.31.0 + github.com/spf13/viper v1.18.2 + google.golang.org/protobuf v1.32.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 2648afd..fffc4ad 100644 --- a/go.sum +++ b/go.sum @@ -147,8 +147,8 @@ github.com/opencontainers/image-spec v1.1.0-rc5 h1:Ygwkfw9bpDvs+c9E34SdgGOj41dX/ github.com/opencontainers/image-spec v1.1.0-rc5/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8= github.com/openfga/api/proto v0.0.0-20231212010208-061d8d8d395f h1:V3PJBij2yFcVuAt/rNzt9k6pEFmUwcyiBIHUXrjWQoU= github.com/openfga/api/proto v0.0.0-20231212010208-061d8d8d395f/go.mod h1:YSbEQDNGnVlThfExHQ3zDNd+puWXf4zzfL0ms2VbIwI= -github.com/openfga/go-sdk v0.3.0 h1:LePhKurwJInJU9uZBYzzfYY89ddLJ62jlogr1sHmkv8= -github.com/openfga/go-sdk v0.3.0/go.mod h1:Ky3uVuylBYH8tiBPvGDn1QUypCgw9zFUL0VzA5PBR80= +github.com/openfga/go-sdk v0.3.3 h1:eMZGCEDW/sz9S3gNxbpO5rNpDezz7cjT+zwjpDgqTt0= +github.com/openfga/go-sdk v0.3.3/go.mod h1:W4SNYMSxptGOtA9aGYxsYUmSC7LaZYP7y9qbT36ouCc= github.com/openfga/language/pkg/go v0.0.0-20231214002416-cca4c4312106 h1:Or+g4TTSk445xYmRzcYM3kaY3cIxEaRRJOIDfPUYe7c= github.com/openfga/language/pkg/go v0.0.0-20231214002416-cca4c4312106/go.mod h1:WamR7K9KCvw+Elbep2QhVWo0xE/DRJSuQz3RQYwvfck= github.com/openfga/openfga v1.4.0 h1:7qdeJcOTAY8C7WO3OptZtqcbQx4fbaGtb61Z67urKDc= @@ -194,8 +194,8 @@ github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.18.1 h1:rmuU42rScKWlhhJDyXZRKJQHXFX02chSVW1IvkPGiVM= -github.com/spf13/viper v1.18.1/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -333,8 +333,8 @@ google.golang.org/grpc v1.60.0 h1:6FQAR0kM31P6MRdeluor2w2gPaS4SVNrD/DNTxrQ15k= google.golang.org/grpc v1.60.0/go.mod h1:OlCHIeLYqSSsLi6i49B5QGdzaMZK9+M7LXN2FKz4eGM= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=