lutaml-model 0.8.92 → 0.8.93

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: 19d1cc9a53554486e1dda21b67751062851d1990b9878aac1dcd6ccd2542d28e
4
- data.tar.gz: 459cecd7cbdd127bb65a52cd6058d027e5139f2926e46d408bea5a28b13f2e7f
3
+ metadata.gz: 86c5bac7343ebcdc8da3bcd0823d921b71b8a2e36b51db39407377623aa5e6a4
4
+ data.tar.gz: 70f1211df047a2a18fd9d7aeb95e16bbf42c56ccefcf67d6cce8a2fce0f48278
5
5
  SHA512:
6
- metadata.gz: 92637d4ab1efbd63d746983b4e359f2d49c00469e94bb249a050f36f1b80f15b18ae705245fdd8ab563d854e814fea54ce99993f64dbc17beb9c87555f7b3a95
7
- data.tar.gz: 54412f06f6f1bed27f74a85495b414cfc6da3274ab03214220c27edd344aff8cd58f70874fa317fb61b9e8523a04725d69152dfde490b3aa61a2d75540a161ed
6
+ metadata.gz: 43490a24e28b65c3c01e96511d99bdef692c933280d7a5e854d413d9d6d0234e524d7d7512e7fa94af61e5049ecfe509fd8146ea1120a5be445d7dcb608ee4eb
7
+ data.tar.gz: 89265e10746d04714e1ad7d854c3e39cdd0578f5ed7230542da53eda00258850e75c402fc1c8d3c34590eea1960c9bc63f25079c6bad43854e85a7f9a9eefe71
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Model
5
- VERSION = "0.8.92"
5
+ VERSION = "0.8.93"
6
6
  end
7
7
  end
@@ -1647,9 +1647,21 @@ effective_register = lutaml_register)
1647
1647
 
1648
1648
  return true if mode == :drop
1649
1649
 
1650
- defaults_used << rule.to
1650
+ # The visited path picks the default branch only while the
1651
+ # attribute still reads as default-valued; once another rule
1652
+ # or a custom writer set it mid-parse, the omission gate ends
1653
+ # the visit with no write. Mirror that: replay writes only
1654
+ # while unset, and drops otherwise (a custom writer may have
1655
+ # populated the attribute — relaton's ICS Isoics-fallback
1656
+ # pattern).
1657
+ rule_to = rule.to
1658
+ unless instance.using_default?(rule_to)
1659
+ return true
1660
+ end
1661
+
1662
+ defaults_used << rule_to
1651
1663
  instance.public_send(record.replay_writer, nil)
1652
- instance.value_set_for(rule.to)
1664
+ instance.value_set_for(rule_to)
1653
1665
  true
1654
1666
  end
1655
1667
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.92
4
+ version: 0.8.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-03 00:00:00.000000000 Z
11
+ date: 2026-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64