sorbet-runtime 0.6.13347 → 0.6.13351
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/lib/types/props/serializable.rb +3 -20
- 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: d0337eb93d38de8e64b39043ffd3b986cd7f4f4ea16413eedb1f599a5aa393b1
|
|
4
|
+
data.tar.gz: 32178fae98337c722d1dd31d4739af3cd41387a806fc33ae642271b9422502c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b70eae8153c4400303567f4e147569e05e571025a57a88be2cbba32cd4f4eb4903fc0d6dfd8ed5b56b7416c23f1b2c8330cb638f7713b835a146d36a2a1212ad
|
|
7
|
+
data.tar.gz: 1f4cf44bb7735e59af78a35629616c4c9357476a50c8dbd58808ec299b2aff9b90f5da41ab3b7aa9c94f4b7bbfdf6c74e47c422b41d3ca4e2b4dc753507e517c
|
|
@@ -269,26 +269,9 @@ module T::Props::Serializable::DecoratorMethods
|
|
|
269
269
|
end
|
|
270
270
|
|
|
271
271
|
def raise_nil_deserialize_error(hkey)
|
|
272
|
-
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"for more details). If this is already the case, you probably "\
|
|
276
|
-
"omitted a required prop from the `fields:` option when doing a "\
|
|
277
|
-
"partial load."
|
|
278
|
-
storytime = {prop: hkey, klass: decorated_class.name}
|
|
279
|
-
|
|
280
|
-
# Notify the model owner if it exists, and always notify the API owner.
|
|
281
|
-
begin
|
|
282
|
-
if T::Configuration.class_owner_finder && (owner = T::Configuration.class_owner_finder.call(decorated_class))
|
|
283
|
-
T::Configuration.hard_assert_handler(
|
|
284
|
-
msg,
|
|
285
|
-
storytime: storytime,
|
|
286
|
-
project: owner
|
|
287
|
-
)
|
|
288
|
-
end
|
|
289
|
-
ensure
|
|
290
|
-
T::Configuration.hard_assert_handler(msg, storytime: storytime)
|
|
291
|
-
end
|
|
272
|
+
raise "Tried to deserialize a required prop from a nil value. " \
|
|
273
|
+
"You should provide a `default: or factory:` for this prop. " \
|
|
274
|
+
"prop=#{hkey} klass=#{decorated_class.name}"
|
|
292
275
|
end
|
|
293
276
|
|
|
294
277
|
def prop_validate_definition!(name, cls, rules, type)
|