workos 9.2.0 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.last-synced-sha +1 -1
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +2 -2
- data/lib/workos/organization_membership/organization_membership.rb +3 -0
- data/lib/workos/organization_membership/user_organization_membership.rb +3 -0
- data/lib/workos/version.rb +1 -1
- data/rbi/workos/organization_membership.rbi +6 -0
- data/rbi/workos/user_organization_membership.rbi +6 -0
- data/test/workos/test_model_round_trip.rb +26 -163
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c7ff4e4cac3c0f96112977f6a735a849d7c263321cdf56b78c4b3f522cdb7c0
|
|
4
|
+
data.tar.gz: aa56fd99fde6418f823776e3ba0f9c22dd847c637dcd1f17dc7bf9945c0d8fff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9550d21ed7bdde7654e69afbc358db96fb4a614734386dd3bdd322179a450c676a8159764c527737bdd60e9ffa4c89789ece1df2c1dc79b400e2f88e4ef52944
|
|
7
|
+
data.tar.gz: ac7ed9d7a2936b0faad47eb26d9d950fadf378e2c1a467c922a15b0e64847a54b9b182410f06f0a3df31587f74e0e2629d0da9fcfc404019b572ada50744e169
|
data/.last-synced-sha
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1a2f47b20f63f2c8f0eb56bbd2adb3b5947d693a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [9.3.0](https://github.com/workos/workos-ruby/compare/v9.2.0...v9.3.0) (2026-06-30)
|
|
4
|
+
|
|
5
|
+
* [#504](https://github.com/workos/workos-ruby/pull/504) fix(generated): regenerate from spec
|
|
6
|
+
|
|
7
|
+
**Fixes**
|
|
8
|
+
* **[organization_membership](https://workos.com/docs/reference/authkit/organization-membership)**:
|
|
9
|
+
* Added `roles` to organization membership models
|
|
10
|
+
|
|
3
11
|
## [9.2.0](https://github.com/workos/workos-ruby/compare/v9.1.0...v9.2.0) (2026-06-18)
|
|
4
12
|
|
|
5
13
|
- [#501](https://github.com/workos/workos-ruby/pull/501) feat(generated)!: regenerate from spec (12 changes)
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workos (9.
|
|
4
|
+
workos (9.3.0)
|
|
5
5
|
jwt (~> 3.1)
|
|
6
6
|
logger (~> 1.7)
|
|
7
7
|
zeitwerk (~> 2.6)
|
|
@@ -153,7 +153,7 @@ CHECKSUMS
|
|
|
153
153
|
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
|
|
154
154
|
webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
|
|
155
155
|
webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
|
|
156
|
-
workos (9.
|
|
156
|
+
workos (9.3.0)
|
|
157
157
|
yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28
|
|
158
158
|
yard-markdown (0.7.1) sha256=06c378632dfe7ba053be9ba469eb4701aa0470e36bcf7e5546f353eb90c1bfd1
|
|
159
159
|
zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
|
|
@@ -16,6 +16,7 @@ module WorkOS
|
|
|
16
16
|
created_at: :created_at,
|
|
17
17
|
updated_at: :updated_at,
|
|
18
18
|
role: :role,
|
|
19
|
+
roles: :roles,
|
|
19
20
|
user: :user
|
|
20
21
|
}.freeze
|
|
21
22
|
|
|
@@ -31,6 +32,7 @@ module WorkOS
|
|
|
31
32
|
:created_at,
|
|
32
33
|
:updated_at,
|
|
33
34
|
:role,
|
|
35
|
+
:roles,
|
|
34
36
|
:user
|
|
35
37
|
|
|
36
38
|
def initialize(json)
|
|
@@ -46,6 +48,7 @@ module WorkOS
|
|
|
46
48
|
@created_at = hash[:created_at]
|
|
47
49
|
@updated_at = hash[:updated_at]
|
|
48
50
|
@role = hash[:role] ? WorkOS::SlimRole.new(hash[:role]) : nil
|
|
51
|
+
@roles = (hash[:roles] || []).map { |item| item ? WorkOS::SlimRole.new(item) : nil }
|
|
49
52
|
@user = hash[:user] ? WorkOS::User.new(hash[:user]) : nil
|
|
50
53
|
end
|
|
51
54
|
end
|
|
@@ -16,6 +16,7 @@ module WorkOS
|
|
|
16
16
|
created_at: :created_at,
|
|
17
17
|
updated_at: :updated_at,
|
|
18
18
|
role: :role,
|
|
19
|
+
roles: :roles,
|
|
19
20
|
user: :user
|
|
20
21
|
}.freeze
|
|
21
22
|
|
|
@@ -31,6 +32,7 @@ module WorkOS
|
|
|
31
32
|
:created_at,
|
|
32
33
|
:updated_at,
|
|
33
34
|
:role,
|
|
35
|
+
:roles,
|
|
34
36
|
:user
|
|
35
37
|
|
|
36
38
|
def initialize(json)
|
|
@@ -46,6 +48,7 @@ module WorkOS
|
|
|
46
48
|
@created_at = hash[:created_at]
|
|
47
49
|
@updated_at = hash[:updated_at]
|
|
48
50
|
@role = hash[:role] ? WorkOS::SlimRole.new(hash[:role]) : nil
|
|
51
|
+
@roles = (hash[:roles] || []).map { |item| item ? WorkOS::SlimRole.new(item) : nil }
|
|
49
52
|
@user = hash[:user] ? WorkOS::User.new(hash[:user]) : nil
|
|
50
53
|
end
|
|
51
54
|
end
|
data/lib/workos/version.rb
CHANGED
|
@@ -75,6 +75,12 @@ module WorkOS
|
|
|
75
75
|
sig { params(value: WorkOS::SlimRole).returns(WorkOS::SlimRole) }
|
|
76
76
|
def role=(value); end
|
|
77
77
|
|
|
78
|
+
sig { returns(T::Array[WorkOS::SlimRole]) }
|
|
79
|
+
def roles; end
|
|
80
|
+
|
|
81
|
+
sig { params(value: T::Array[WorkOS::SlimRole]).returns(T::Array[WorkOS::SlimRole]) }
|
|
82
|
+
def roles=(value); end
|
|
83
|
+
|
|
78
84
|
sig { returns(WorkOS::User) }
|
|
79
85
|
def user; end
|
|
80
86
|
|
|
@@ -75,6 +75,12 @@ module WorkOS
|
|
|
75
75
|
sig { params(value: WorkOS::SlimRole).returns(WorkOS::SlimRole) }
|
|
76
76
|
def role=(value); end
|
|
77
77
|
|
|
78
|
+
sig { returns(T::Array[WorkOS::SlimRole]) }
|
|
79
|
+
def roles; end
|
|
80
|
+
|
|
81
|
+
sig { params(value: T::Array[WorkOS::SlimRole]).returns(T::Array[WorkOS::SlimRole]) }
|
|
82
|
+
def roles=(value); end
|
|
83
|
+
|
|
78
84
|
sig { returns(WorkOS::User) }
|
|
79
85
|
def user; end
|
|
80
86
|
|
|
@@ -1099,39 +1099,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
1099
1099
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
1100
1100
|
end
|
|
1101
1101
|
|
|
1102
|
-
def test_object_summary_round_trip
|
|
1103
|
-
fixture = {
|
|
1104
|
-
"id" => "stub",
|
|
1105
|
-
"name" => "stub",
|
|
1106
|
-
"updated_at" => nil
|
|
1107
|
-
}
|
|
1108
|
-
model = WorkOS::ObjectSummary.new(fixture.to_json)
|
|
1109
|
-
json = model.to_h
|
|
1110
|
-
assert_kind_of Hash, json
|
|
1111
|
-
assert_equal fixture["id"], json[:id]
|
|
1112
|
-
assert_equal fixture["name"], json[:name]
|
|
1113
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
1114
|
-
end
|
|
1115
|
-
|
|
1116
|
-
def test_object_version_round_trip
|
|
1117
|
-
fixture = {
|
|
1118
|
-
"created_at" => "stub",
|
|
1119
|
-
"current_version" => true,
|
|
1120
|
-
"etag" => "stub",
|
|
1121
|
-
"id" => "stub",
|
|
1122
|
-
"size" => 1
|
|
1123
|
-
}
|
|
1124
|
-
model = WorkOS::ObjectVersion.new(fixture.to_json)
|
|
1125
|
-
json = model.to_h
|
|
1126
|
-
assert_kind_of Hash, json
|
|
1127
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
1128
|
-
assert_equal fixture["current_version"], json[:current_version]
|
|
1129
|
-
assert_equal fixture["etag"], json[:etag]
|
|
1130
|
-
assert_equal fixture["id"], json[:id]
|
|
1131
|
-
assert_equal fixture["size"], json[:size]
|
|
1132
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
1133
|
-
end
|
|
1134
|
-
|
|
1135
1102
|
def test_object_without_value_round_trip
|
|
1136
1103
|
fixture = {
|
|
1137
1104
|
"id" => "stub",
|
|
@@ -1926,24 +1893,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
1926
1893
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
1927
1894
|
end
|
|
1928
1895
|
|
|
1929
|
-
def test_event_schema_round_trip
|
|
1930
|
-
fixture = {
|
|
1931
|
-
"object" => "event",
|
|
1932
|
-
"id" => "stub",
|
|
1933
|
-
"event" => "stub",
|
|
1934
|
-
"data" => {},
|
|
1935
|
-
"created_at" => "stub",
|
|
1936
|
-
"context" => {}
|
|
1937
|
-
}
|
|
1938
|
-
model = WorkOS::EventSchema.new(fixture.to_json)
|
|
1939
|
-
json = model.to_h
|
|
1940
|
-
assert_kind_of Hash, json
|
|
1941
|
-
assert_equal fixture["id"], json[:id]
|
|
1942
|
-
assert_equal fixture["event"], json[:event]
|
|
1943
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
1944
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
1945
|
-
end
|
|
1946
|
-
|
|
1947
1896
|
def test_action_authentication_denied_round_trip
|
|
1948
1897
|
fixture = {
|
|
1949
1898
|
"object" => "event",
|
|
@@ -6181,30 +6130,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
6181
6130
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
6182
6131
|
end
|
|
6183
6132
|
|
|
6184
|
-
def test_organization_domain_stand_alone_round_trip
|
|
6185
|
-
fixture = {
|
|
6186
|
-
"object" => "organization_domain",
|
|
6187
|
-
"id" => "stub",
|
|
6188
|
-
"organization_id" => "stub",
|
|
6189
|
-
"domain" => "stub",
|
|
6190
|
-
"state" => "stub",
|
|
6191
|
-
"verification_prefix" => "stub",
|
|
6192
|
-
"verification_token" => "stub",
|
|
6193
|
-
"verification_strategy" => "stub",
|
|
6194
|
-
"created_at" => "stub",
|
|
6195
|
-
"updated_at" => "stub"
|
|
6196
|
-
}
|
|
6197
|
-
model = WorkOS::OrganizationDomainStandAlone.new(fixture.to_json)
|
|
6198
|
-
json = model.to_h
|
|
6199
|
-
assert_kind_of Hash, json
|
|
6200
|
-
assert_equal fixture["id"], json[:id]
|
|
6201
|
-
assert_equal fixture["organization_id"], json[:organization_id]
|
|
6202
|
-
assert_equal fixture["domain"], json[:domain]
|
|
6203
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
6204
|
-
assert_equal fixture["updated_at"], json[:updated_at]
|
|
6205
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
6206
|
-
end
|
|
6207
|
-
|
|
6208
6133
|
def test_flag_round_trip
|
|
6209
6134
|
fixture = {
|
|
6210
6135
|
"object" => "feature_flag",
|
|
@@ -6233,32 +6158,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
6233
6158
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
6234
6159
|
end
|
|
6235
6160
|
|
|
6236
|
-
def test_organization_api_key_round_trip
|
|
6237
|
-
fixture = {
|
|
6238
|
-
"object" => "api_key",
|
|
6239
|
-
"id" => "stub",
|
|
6240
|
-
"owner" => {},
|
|
6241
|
-
"name" => "stub",
|
|
6242
|
-
"obfuscated_value" => "stub",
|
|
6243
|
-
"last_used_at" => nil,
|
|
6244
|
-
"expires_at" => nil,
|
|
6245
|
-
"permissions" => [],
|
|
6246
|
-
"created_at" => "stub",
|
|
6247
|
-
"updated_at" => "stub"
|
|
6248
|
-
}
|
|
6249
|
-
model = WorkOS::OrganizationApiKey.new(fixture.to_json)
|
|
6250
|
-
json = model.to_h
|
|
6251
|
-
assert_kind_of Hash, json
|
|
6252
|
-
assert_equal fixture["id"], json[:id]
|
|
6253
|
-
assert_equal fixture["name"], json[:name]
|
|
6254
|
-
assert_equal fixture["obfuscated_value"], json[:obfuscated_value]
|
|
6255
|
-
assert_nil json[:last_used_at]
|
|
6256
|
-
assert_nil json[:expires_at]
|
|
6257
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
6258
|
-
assert_equal fixture["updated_at"], json[:updated_at]
|
|
6259
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
6260
|
-
end
|
|
6261
|
-
|
|
6262
6161
|
def test_organization_api_key_with_value_round_trip
|
|
6263
6162
|
fixture = {
|
|
6264
6163
|
"object" => "api_key",
|
|
@@ -6595,6 +6494,7 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
6595
6494
|
"created_at" => "stub",
|
|
6596
6495
|
"updated_at" => "stub",
|
|
6597
6496
|
"role" => {},
|
|
6497
|
+
"roles" => [],
|
|
6598
6498
|
"user" => {}
|
|
6599
6499
|
}
|
|
6600
6500
|
model = WorkOS::UserOrganizationMembership.new(fixture.to_json)
|
|
@@ -6938,6 +6838,30 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
6938
6838
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
6939
6839
|
end
|
|
6940
6840
|
|
|
6841
|
+
def test_organization_domain_round_trip
|
|
6842
|
+
fixture = {
|
|
6843
|
+
"object" => "organization_domain",
|
|
6844
|
+
"id" => "stub",
|
|
6845
|
+
"organization_id" => "stub",
|
|
6846
|
+
"domain" => "stub",
|
|
6847
|
+
"state" => "stub",
|
|
6848
|
+
"verification_prefix" => "stub",
|
|
6849
|
+
"verification_token" => "stub",
|
|
6850
|
+
"verification_strategy" => "stub",
|
|
6851
|
+
"created_at" => "stub",
|
|
6852
|
+
"updated_at" => "stub"
|
|
6853
|
+
}
|
|
6854
|
+
model = WorkOS::OrganizationDomain.new(fixture.to_json)
|
|
6855
|
+
json = model.to_h
|
|
6856
|
+
assert_kind_of Hash, json
|
|
6857
|
+
assert_equal fixture["id"], json[:id]
|
|
6858
|
+
assert_equal fixture["organization_id"], json[:organization_id]
|
|
6859
|
+
assert_equal fixture["domain"], json[:domain]
|
|
6860
|
+
assert_equal fixture["created_at"], json[:created_at]
|
|
6861
|
+
assert_equal fixture["updated_at"], json[:updated_at]
|
|
6862
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
6863
|
+
end
|
|
6864
|
+
|
|
6941
6865
|
def test_jwks_response_keys_round_trip
|
|
6942
6866
|
fixture = {
|
|
6943
6867
|
"alg" => "RS256",
|
|
@@ -7099,30 +7023,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
7099
7023
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7100
7024
|
end
|
|
7101
7025
|
|
|
7102
|
-
def test_organization_domain_round_trip
|
|
7103
|
-
fixture = {
|
|
7104
|
-
"object" => "organization_domain",
|
|
7105
|
-
"id" => "stub",
|
|
7106
|
-
"organization_id" => "stub",
|
|
7107
|
-
"domain" => "stub",
|
|
7108
|
-
"state" => "stub",
|
|
7109
|
-
"verification_prefix" => "stub",
|
|
7110
|
-
"verification_token" => "stub",
|
|
7111
|
-
"verification_strategy" => "stub",
|
|
7112
|
-
"created_at" => "stub",
|
|
7113
|
-
"updated_at" => "stub"
|
|
7114
|
-
}
|
|
7115
|
-
model = WorkOS::OrganizationDomain.new(fixture.to_json)
|
|
7116
|
-
json = model.to_h
|
|
7117
|
-
assert_kind_of Hash, json
|
|
7118
|
-
assert_equal fixture["id"], json[:id]
|
|
7119
|
-
assert_equal fixture["organization_id"], json[:organization_id]
|
|
7120
|
-
assert_equal fixture["domain"], json[:domain]
|
|
7121
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
7122
|
-
assert_equal fixture["updated_at"], json[:updated_at]
|
|
7123
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7124
|
-
end
|
|
7125
|
-
|
|
7126
7026
|
def test_organization_api_key_with_value_owner_round_trip
|
|
7127
7027
|
fixture = {
|
|
7128
7028
|
"type" => "organization",
|
|
@@ -7135,18 +7035,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
7135
7035
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7136
7036
|
end
|
|
7137
7037
|
|
|
7138
|
-
def test_organization_api_key_owner_round_trip
|
|
7139
|
-
fixture = {
|
|
7140
|
-
"type" => "organization",
|
|
7141
|
-
"id" => "stub"
|
|
7142
|
-
}
|
|
7143
|
-
model = WorkOS::OrganizationApiKeyOwner.new(fixture.to_json)
|
|
7144
|
-
json = model.to_h
|
|
7145
|
-
assert_kind_of Hash, json
|
|
7146
|
-
assert_equal fixture["id"], json[:id]
|
|
7147
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7148
|
-
end
|
|
7149
|
-
|
|
7150
7038
|
def test_flag_owner_round_trip
|
|
7151
7039
|
fixture = {
|
|
7152
7040
|
"email" => "stub",
|
|
@@ -7162,17 +7050,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
7162
7050
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7163
7051
|
end
|
|
7164
7052
|
|
|
7165
|
-
def test_event_list_list_metadata_round_trip
|
|
7166
|
-
fixture = {
|
|
7167
|
-
"after" => nil
|
|
7168
|
-
}
|
|
7169
|
-
model = WorkOS::EventListListMetadata.new(fixture.to_json)
|
|
7170
|
-
json = model.to_h
|
|
7171
|
-
assert_kind_of Hash, json
|
|
7172
|
-
assert_nil json[:after]
|
|
7173
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7174
|
-
end
|
|
7175
|
-
|
|
7176
7053
|
def test_directory_user_email_round_trip
|
|
7177
7054
|
fixture = {
|
|
7178
7055
|
"primary" => true,
|
|
@@ -7379,21 +7256,6 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
7379
7256
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7380
7257
|
end
|
|
7381
7258
|
|
|
7382
|
-
def test_authorized_connect_application_list_data_round_trip
|
|
7383
|
-
fixture = {
|
|
7384
|
-
"object" => "authorized_connect_application",
|
|
7385
|
-
"id" => "stub",
|
|
7386
|
-
"granted_scopes" => [],
|
|
7387
|
-
"oauth_resource" => "stub",
|
|
7388
|
-
"application" => {}
|
|
7389
|
-
}
|
|
7390
|
-
model = WorkOS::AuthorizedConnectApplicationListData.new(fixture.to_json)
|
|
7391
|
-
json = model.to_h
|
|
7392
|
-
assert_kind_of Hash, json
|
|
7393
|
-
assert_equal fixture["id"], json[:id]
|
|
7394
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
7395
|
-
end
|
|
7396
|
-
|
|
7397
7259
|
def test_api_key_owner_round_trip
|
|
7398
7260
|
fixture = {
|
|
7399
7261
|
"type" => "organization",
|
|
@@ -7831,6 +7693,7 @@ class ModelRoundTripTest < Minitest::Test
|
|
|
7831
7693
|
"created_at" => "stub",
|
|
7832
7694
|
"updated_at" => "stub",
|
|
7833
7695
|
"role" => {},
|
|
7696
|
+
"roles" => [],
|
|
7834
7697
|
"user" => {}
|
|
7835
7698
|
}
|
|
7836
7699
|
model = WorkOS::OrganizationMembership.new(fixture.to_json)
|