lutaml-model 0.8.152 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3179c05b894046e4d7524d0c342dad926a3ab280dcc64c03755e6c9b646f24f5
4
- data.tar.gz: 2fec2396c35a9cd0e3bd90c4ff2903f379179301b86f1fc94293600785492324
3
+ metadata.gz: 6a43c96db13151bde996328f404ea863bcca41342ba8aade9af50b0337a876ba
4
+ data.tar.gz: 1c243c3811902784fce7995ddc414a0c5d2f0a65a0d7e46e0ee26099f72137b2
5
5
  SHA512:
6
- metadata.gz: adc9e9509f97a62341e5ae852f3c95b79f33996e833f61b2cde4c0250b97e356c3f2b38c09d5150abbf8a042d3998a0058e71859a74042f7a85aa883d1695816
7
- data.tar.gz: fe2d3cd03ae81d65345e614f48a14c0be07f5fe6bcdca93260ab2f3c225e2ec9dae47a41fb9412cd6e9e04207da916e1726cec07c953f0b05dab7f77400375ce
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Model
5
- VERSION = "0.8.152"
5
+ VERSION = "0.8.153"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.152
4
+ version: 0.8.153
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.