lutaml-model 0.8.151 → 0.8.153
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/lutaml/model/serialize/initialization.rb +9 -0
- data/lib/lutaml/model/version.rb +1 -1
- 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: 6a43c96db13151bde996328f404ea863bcca41342ba8aade9af50b0337a876ba
|
|
4
|
+
data.tar.gz: 1c243c3811902784fce7995ddc414a0c5d2f0a65a0d7e46e0ee26099f72137b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec4add92a4e7d1bab0390c926e9449a3978caf671a3a44a62441606d666e367ff9f960e3649443141ba69017bae76e1089b9c478f5f69f572b78a269abdccc65
|
|
7
|
+
data.tar.gz: b0b9818d4208443291e23c38cb5640220e8b748fffdd8aa452d2e40397cfe0781095478aef0ec89219368a6ef6fe06560a97a4ba6b6a057c91f9307b1a7c49b4
|
|
@@ -655,6 +655,15 @@ module Lutaml
|
|
|
655
655
|
next unless unset
|
|
656
656
|
|
|
657
657
|
default = attr.default_value(register_id, instance)
|
|
658
|
+
if raw.nil? && Lutaml::Model::Utils.uninitialized?(default)
|
|
659
|
+
# The constructor-seeded path (#1059) already wrote nil for
|
|
660
|
+
# non-defaulted attributes and marked them using-default — a
|
|
661
|
+
# nil write through the cast chain here would be pure re-work.
|
|
662
|
+
# (Sentinels and lazy collections fall through: they need the
|
|
663
|
+
# seeding branch.)
|
|
664
|
+
instance.using_default_for(name)
|
|
665
|
+
next
|
|
666
|
+
end
|
|
658
667
|
value = if Lutaml::Model::Utils.uninitialized?(default)
|
|
659
668
|
nil
|
|
660
669
|
else
|
data/lib/lutaml/model/version.rb
CHANGED