lutaml-model 0.8.114 → 0.8.115
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/version.rb +1 -1
- data/lib/lutaml/xml/leptris/plan_serializer.rb +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b924b08953808c53f7f6db9f9832ffa870b11a5d2c7fe450b1340d8b2f289562
|
|
4
|
+
data.tar.gz: 3ba1f1afe7b2a95e83f137f8d3944e56e0ba516962b261665c4c3b91de74824f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d956aca0be2bdbae7e513391962490429057f04ca4371be1477d4bbc29e79f8ad942beffbb40debf27db64f7be7e7c301110832439a3ece8eb4ece5e6c673d9
|
|
7
|
+
data.tar.gz: 7a384e7b06e927f9b78a129914de369c2befa23b14e84c6a9c2ba24e769c145dd0b0814fa3f92483516132020ced34c885c71872c251d41a8bdc6dff995b41db
|
data/lib/lutaml/model/version.rb
CHANGED
|
@@ -62,7 +62,12 @@ module Lutaml
|
|
|
62
62
|
# (namespaced spellings are instance-dependent; ordered,
|
|
63
63
|
# wildcard, raw, and callback shapes are not
|
|
64
64
|
# ops-expressible).
|
|
65
|
-
|
|
65
|
+
# element_order is the order contract: a model carrying it —
|
|
66
|
+
# parse-captured or programmatically tracked (#977) — must
|
|
67
|
+
# serialize through the ordered walk, not the flat
|
|
68
|
+
# schema-order native ops layout.
|
|
69
|
+
return NativeEmission.emit(instance, plan, register) if
|
|
70
|
+
NativeEmission.compatible?(plan) && instance.element_order.nil?
|
|
66
71
|
|
|
67
72
|
doc = ::Leptris::XML::Document.create
|
|
68
73
|
ns_ctx = Namespaces.new(instance, plan, register)
|
|
@@ -85,7 +90,7 @@ module Lutaml
|
|
|
85
90
|
root.set_attribute("xsi:schemaLocation",
|
|
86
91
|
instance.raw_schema_location)
|
|
87
92
|
end
|
|
88
|
-
built = if plan[:ordered]
|
|
93
|
+
built = if plan[:ordered] || !instance.element_order.nil?
|
|
89
94
|
build_ordered(root, instance, plan, doc, register, ns_ctx)
|
|
90
95
|
else
|
|
91
96
|
build(root, instance, plan, doc, register, ns_ctx)
|
|
@@ -310,7 +315,7 @@ module Lutaml
|
|
|
310
315
|
ns_ctx ? ns_ctx.spell(row_name(rule, spelling), child_ns) : row_name(rule, spelling),
|
|
311
316
|
)
|
|
312
317
|
ns_ctx&.collect(child_plan[:tree])
|
|
313
|
-
if child_plan[:ordered]
|
|
318
|
+
if child_plan[:ordered] || !item.element_order.nil?
|
|
314
319
|
build_ordered(child, item, child_plan,
|
|
315
320
|
doc, reg, ns_ctx, child_ns) || return
|
|
316
321
|
else
|
|
@@ -522,7 +527,7 @@ module Lutaml
|
|
|
522
527
|
child = element.create_child(
|
|
523
528
|
ns_ctx ? ns_ctx.spell(object.name, child_ns) : object.name,
|
|
524
529
|
)
|
|
525
|
-
if child_plan[:ordered]
|
|
530
|
+
if child_plan[:ordered] || !item.element_order.nil?
|
|
526
531
|
return nil unless build_ordered(child, item, child_plan,
|
|
527
532
|
doc, reg, ns_ctx, child_ns)
|
|
528
533
|
else
|
|
@@ -580,7 +585,7 @@ module Lutaml
|
|
|
580
585
|
child = element.create_child(
|
|
581
586
|
ns_ctx ? ns_ctx.spell(name, child_ns) : name,
|
|
582
587
|
)
|
|
583
|
-
if child_plan[:ordered]
|
|
588
|
+
if child_plan[:ordered] || !item.element_order.nil?
|
|
584
589
|
return nil unless build_ordered(child, item, child_plan,
|
|
585
590
|
doc, reg, ns_ctx, child_ns)
|
|
586
591
|
else
|
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.
|
|
4
|
+
version: 0.8.115
|
|
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-
|
|
11
|
+
date: 2026-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|