lutaml-xsd 1.2.89 → 1.2.90

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: ee81fb06ad80e4da277c32dd4bd6dd3a5cdfbad94d2ba5c3fdef2b3a09cd64db
4
- data.tar.gz: 43b043d4d772dd55838bbf7790d2d1bc7bfc9dda1c296377ac519d2acd75b7f2
3
+ metadata.gz: 455a2b544740a5953b1d2195962d89a3b549c8daa3b97c97b8bc8a9739bec815
4
+ data.tar.gz: 5157237514326ad902236ce4a3f2f67940680ef8a3e0f2a080d3012a2ee6c6c1
5
5
  SHA512:
6
- metadata.gz: 2f3d851982c4b705f7bf3a2757110ac2ef8647031004618a3f105ebf4479ec214cb308395abd38c4bc85ab4edf2d432ec2822d6e5034ec1cda11d32b03e91e10
7
- data.tar.gz: af59e1a701a4d46d9e82e79b908b350fbd53d5381e74efc8c841113cc914672c7cd96f846a59faa0281b8cfeb81d20b65b1f2812edd7aad15bb37eff47206702
6
+ metadata.gz: 539801642fef0b0625c6d647305411294f71164f0ebc49b92993895b473784112aafde653b46cc87f32d3b278dc71a7eed6468b366343a1731bd51304102814a
7
+ data.tar.gz: 00413b4b3e957a333d13285ad87219cdec576d7ac135dbc7d8561aee6f41b3bd613338910b4b366622805e685c7c34cbb204b6bfbc74376bee5c5b3424e2723c
data/TODO.conformance.md CHANGED
@@ -120,7 +120,7 @@ pinned commit) is measured via `rake conformance:w3c`:
120
120
 
121
121
  | mode | pass-rate |
122
122
  |---|---|
123
- | pipeline | 4613/4696 (98.23%) |
123
+ | pipeline | 4614/4696 (98.25%) |
124
124
 
125
125
  (2026-11-02, bundled-stack measurement with the escape,
126
126
  hint-following, pattern-alternative, identity-crash, engine-set,
@@ -144,7 +144,7 @@ lockfile refresh) → 4411 (93.9%) → 4430 (94.3%) → 4435 (94.4%) →
144
144
  → 4557 (97.0%) → 4565 (97.2%) → 4569 (97.3%) → 4562 (drift raw) →
145
145
  4563 (97.17%, ref-namespace round) → 4573 (97.38%, group-content
146
146
  round) → 4578 (97.49%, attribute-prohibition round) → 4585 (97.64%,
147
- multi-document round) → 4588 (97.7%, type-binding round) → 4592 (97.79%, model-161 ride) → 4611 (98.19%, engine-406 ride) → 4613 (98.23%, temporal-enumeration round), +652 net over the 1.2.43 baseline. The escapes round (PR #197 — \d→\p{Nd},
147
+ multi-document round) → 4588 (97.7%, type-binding round) → 4592 (97.79%, model-161 ride) → 4611 (98.19%, engine-406 ride) → 4613 (98.23%, temporal-enumeration round) → 4614 (98.25%, simple-type-children round), +653 net over the 1.2.43 baseline. The escapes round (PR #197 — \d→\p{Nd},
148
148
  \w/\W/\s to their XSD value spaces) collapses Regex 120→69;
149
149
  same-step pattern facets now behave as alternatives and
150
150
  whitespace-only text reaches the facets intact (PR #200), Regex
@@ -512,6 +512,22 @@ tuple keys, node-set field violations and absent-field rows handled, cross-eleme
512
512
  checks bind the no-ns int ct-A to the ns-b boolean children —
513
513
  'true' vs xsd:int — the per-child type plumbing under hint
514
514
  layering), full type-redefine body semantics.
515
+ - SIMPLE-TYPE-CHILDREN ROUND (2026-11-05, third attempt — the first
516
+ two regressed 15 at scale): +1 DataTypes (dtZ86723; suite
517
+ 4613->4614 = 98.25%, zero regressions, rspec green). A simple
518
+ type has no element content: the builtin assessment reports
519
+ children even when the lexical text is valid. THREE guards make
520
+ it sound where the earlier attempts were not: xs:anyType
521
+ overrides admit anything (isDefault072); unresolvable type
522
+ REFERENCES arrive at the builtin path as BARE NAMES through the
523
+ lenient fallback (resolve_element_type returns
524
+ schema_element.type on miss) — only xs/xsd-prefixed names are
525
+ builtin-typed, so the redefine-lenient tabletype class
526
+ (idF/idG) never triggers. The full 19-case battery — including
527
+ every case both earlier attempts regressed — passes. THE ROOT
528
+ CAUSE DISCOVERY: the lenient string fallback meant every
529
+ failed type resolution silently took the builtin path — the
530
+ children check is the first consumer that had to distinguish.
515
531
  - TEMPORAL-ENUMERATION ROUND (2026-11-05): +2 DataTypes (10->8,
516
532
  dateTime_enumeration005a/b; suite 4611->4613 = 98.23%, zero
517
533
  regressions, rspec green). Enumeration membership is a VALUE-space
@@ -1049,6 +1049,33 @@ module Lutaml
1049
1049
  declared: nil)
1050
1050
  value = effective_text(xml_element, declared)
1051
1051
  validate_fixed_content(xml_element, declared, value, collector)
1052
+ # A simple type has no element content: children under a
1053
+ # builtin-typed element are illegal even when the lexical
1054
+ # text is fine (dtZ86723 — the xsi:type-overridden root
1055
+ # carries a stray child beside a valid int). xs:anyType
1056
+ # overrides admit anything (isDefault072); unresolvable
1057
+ # type REFERENCES arrive here as bare names (the lenient
1058
+ # fallback returns schema_element.type) and are not
1059
+ # builtin-typed at all (idF/idG's redefine-lenient
1060
+ # "tabletype").
1061
+ prefix = type_name.to_s.split(":").first
1062
+ local = type_name.to_s.split(":").last
1063
+ if !xml_element.children.empty? &&
1064
+ BUILTIN_PREFIXES.include?(prefix) &&
1065
+ local != "anyType"
1066
+ report_error(
1067
+ collector,
1068
+ code: "simple_type_element_content",
1069
+ message: "Element '#{xml_element.name}' has a simple " \
1070
+ "type (#{type_name}) and cannot carry " \
1071
+ "element children",
1072
+ location: xml_element.xpath,
1073
+ context: {
1074
+ element: xml_element.name,
1075
+ type: type_name,
1076
+ },
1077
+ )
1078
+ end
1052
1079
  answer = engine_builtin_answer(type_name, value)
1053
1080
  return if answer.nil?
1054
1081
  return if answer
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Xsd
5
- VERSION = "1.2.89"
5
+ VERSION = "1.2.90"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-xsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.89
4
+ version: 1.2.90
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.