lutaml-model 0.8.186 → 0.8.188

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.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/dependent-repos-tools-informational.json +8 -0
  3. data/.github/workflows/dependent-repos-tools.json +1 -5
  4. data/.github/workflows/dependent-tests.yml +26 -2
  5. data/Gemfile +2 -0
  6. data/Rakefile +6 -0
  7. data/exe/lutaml-lml-lsp +11 -0
  8. data/lib/compat/opal/generate_boot.rb +12 -5
  9. data/lib/compat/opal/lutaml_model_boot.rb +96 -4
  10. data/lib/lutaml/lml/association_label_resolver.rb +52 -0
  11. data/lib/lutaml/lml/data_processor/attribute_processing.rb +133 -0
  12. data/lib/lutaml/lml/data_processor/collection_processing.rb +37 -0
  13. data/lib/lutaml/lml/data_processor/instance_processing.rb +77 -0
  14. data/lib/lutaml/lml/data_processor/value_declaration_processing.rb +70 -0
  15. data/lib/lutaml/lml/data_processor/value_processing.rb +103 -0
  16. data/lib/lutaml/lml/data_processor/view_processing.rb +26 -0
  17. data/lib/lutaml/lml/data_processor.rb +66 -0
  18. data/lib/lutaml/lml/diagnostic.rb +149 -0
  19. data/lib/lutaml/lml/document_builder.rb +486 -0
  20. data/lib/lutaml/lml/entity_types.rb +31 -0
  21. data/lib/lutaml/lml/executor/adapter_helpers.rb +45 -0
  22. data/lib/lutaml/lml/executor/condition_evaluator.rb +175 -0
  23. data/lib/lutaml/lml/executor/csv_adapter.rb +89 -0
  24. data/lib/lutaml/lml/executor/format_adapter.rb +54 -0
  25. data/lib/lutaml/lml/executor/xml_adapter.rb +102 -0
  26. data/lib/lutaml/lml/executor.rb +96 -0
  27. data/lib/lutaml/lml/format/adapter/document.rb +11 -0
  28. data/lib/lutaml/lml/format/adapter/mapping.rb +31 -0
  29. data/lib/lutaml/lml/format/adapter/standard_adapter.rb +164 -0
  30. data/lib/lutaml/lml/format/adapter/transform.rb +11 -0
  31. data/lib/lutaml/lml/format.rb +34 -0
  32. data/lib/lutaml/lml/formatter/base.rb +81 -0
  33. data/lib/lutaml/lml/formatter/canonical.rb +738 -0
  34. data/lib/lutaml/lml/formatter.rb +11 -0
  35. data/lib/lutaml/lml/grammar/lml.artifact.json +14993 -0
  36. data/lib/lutaml/lml/grammar/lml.parg +389 -0
  37. data/lib/lutaml/lml/grammar.rb +60 -0
  38. data/lib/lutaml/lml/has_attributes.rb +14 -0
  39. data/lib/lutaml/lml/import_resolver.rb +96 -0
  40. data/lib/lutaml/lml/layout/engine.rb +17 -0
  41. data/lib/lutaml/lml/layout.rb +9 -0
  42. data/lib/lutaml/lml/literal_value.rb +32 -0
  43. data/lib/lutaml/lml/lsp/conversions.rb +78 -0
  44. data/lib/lutaml/lml/lsp/keywords.rb +43 -0
  45. data/lib/lutaml/lml/lsp/server.rb +380 -0
  46. data/lib/lutaml/lml/lsp/store.rb +68 -0
  47. data/lib/lutaml/lml/lsp/transport.rb +53 -0
  48. data/lib/lutaml/lml/lsp.rb +16 -0
  49. data/lib/lutaml/lml/model_compiler/enums.rb +170 -0
  50. data/lib/lutaml/lml/model_compiler/hydration.rb +122 -0
  51. data/lib/lutaml/lml/model_compiler/serialization_mappings.rb +188 -0
  52. data/lib/lutaml/lml/model_compiler/string_formats.rb +42 -0
  53. data/lib/lutaml/lml/model_compiler/validation.rb +65 -0
  54. data/lib/lutaml/lml/model_compiler.rb +329 -0
  55. data/lib/lutaml/lml/models/action.rb +10 -0
  56. data/lib/lutaml/lml/models/association.rb +31 -0
  57. data/lib/lutaml/lml/models/cardinality.rb +10 -0
  58. data/lib/lutaml/lml/models/collection.rb +11 -0
  59. data/lib/lutaml/lml/models/constraint.rb +25 -0
  60. data/lib/lutaml/lml/models/data_type.rb +43 -0
  61. data/lib/lutaml/lml/models/derived_field.rb +14 -0
  62. data/lib/lutaml/lml/models/diagram.rb +22 -0
  63. data/lib/lutaml/lml/models/document.rb +86 -0
  64. data/lib/lutaml/lml/models/enum.rb +40 -0
  65. data/lib/lutaml/lml/models/fidelity.rb +10 -0
  66. data/lib/lutaml/lml/models/group.rb +11 -0
  67. data/lib/lutaml/lml/models/instance.rb +28 -0
  68. data/lib/lutaml/lml/models/instance_collection.rb +18 -0
  69. data/lib/lutaml/lml/models/instances_export.rb +10 -0
  70. data/lib/lutaml/lml/models/instances_import.rb +11 -0
  71. data/lib/lutaml/lml/models/mapping.rb +15 -0
  72. data/lib/lutaml/lml/models/mapping_rule.rb +16 -0
  73. data/lib/lutaml/lml/models/member_field.rb +16 -0
  74. data/lib/lutaml/lml/models/namespace.rb +18 -0
  75. data/lib/lutaml/lml/models/operation.rb +28 -0
  76. data/lib/lutaml/lml/models/operation_parameter.rb +12 -0
  77. data/lib/lutaml/lml/models/package.rb +28 -0
  78. data/lib/lutaml/lml/models/primitive_type.rb +35 -0
  79. data/lib/lutaml/lml/models/reference.rb +23 -0
  80. data/lib/lutaml/lml/models/serialization_mapping.rb +21 -0
  81. data/lib/lutaml/lml/models/string_format.rb +16 -0
  82. data/lib/lutaml/lml/models/top_element_attribute.rb +118 -0
  83. data/lib/lutaml/lml/models/uml_class.rb +87 -0
  84. data/lib/lutaml/lml/models/value.rb +17 -0
  85. data/lib/lutaml/lml/models/view_filter.rb +11 -0
  86. data/lib/lutaml/lml/models/view_import.rb +11 -0
  87. data/lib/lutaml/lml/parser.rb +19 -0
  88. data/lib/lutaml/lml/pipeline.rb +73 -0
  89. data/lib/lutaml/lml/positioned.rb +13 -0
  90. data/lib/lutaml/lml/preprocessor.rb +132 -0
  91. data/lib/lutaml/lml/quoting.rb +60 -0
  92. data/lib/lutaml/lml/source.rb +49 -0
  93. data/lib/lutaml/lml/source_position.rb +20 -0
  94. data/lib/lutaml/lml/symbol_index.rb +202 -0
  95. data/lib/lutaml/lml/transform.rb +119 -0
  96. data/lib/lutaml/lml/types/text_type.rb +28 -0
  97. data/lib/lutaml/lml/types.rb +10 -0
  98. data/lib/lutaml/lml/validator.rb +460 -0
  99. data/lib/lutaml/lml/view_resolution.rb +32 -0
  100. data/lib/lutaml/lml/view_resolver.rb +48 -0
  101. data/lib/lutaml/lml/yaml_parser.rb +17 -0
  102. data/lib/lutaml/lml.rb +130 -0
  103. data/lib/lutaml/model/adapter_resolver.rb +21 -2
  104. data/lib/lutaml/model/config.rb +22 -0
  105. data/lib/lutaml/model/serialize/format_conversion.rb +8 -6
  106. data/lib/lutaml/model/version.rb +1 -1
  107. data/lib/lutaml/xml/adapter/base_adapter.rb +26 -0
  108. data/lib/lutaml/xml/adapter/moxml_adapter.rb +49 -0
  109. data/lib/lutaml/xml/adapter/xml_parser.rb +4 -4
  110. data/lib/lutaml/xml/adapter/xml_serializer.rb +1 -1
  111. data/lib/lutaml/xml/adapter.rb +5 -0
  112. data/lib/lutaml/xml/adapter_loader.rb +5 -0
  113. data/lib/lutaml/xml/format.rb +23 -2
  114. data/lib/lutaml/xml/leptris/native_emission.rb +6 -1
  115. data/lib/lutaml/xml/leptris/plan_serializer.rb +5 -1
  116. data/lib/lutaml/xml/parse_session.rb +8 -1
  117. data/lib/lutaml/xml/schema/builder/moxml.rb +1 -1
  118. data/lib/lutaml/xml/schema/builder.rb +1 -1
  119. data/lib/lutaml/xml/schema/relaxng_schema.rb +1 -1
  120. data/lib/lutaml/xml/schema/vc_namespace.rb +24 -0
  121. data/lib/lutaml/xml/schema/xsd/any.rb +4 -0
  122. data/lib/lutaml/xml/schema/xsd/any_attribute.rb +4 -0
  123. data/lib/lutaml/xml/schema/xsd/base.rb +7 -0
  124. data/lib/lutaml/xml/schema/xsd/open_content.rb +2 -0
  125. data/lib/lutaml/xml/schema/xsd/restriction_simple_type.rb +3 -0
  126. data/lib/lutaml/xml/schema/xsd/schema.rb +38 -0
  127. data/lib/lutaml/xml/schema/xsd/schema_validator.rb +1 -1
  128. data/lib/lutaml/xml/schema/xsd.rb +1 -0
  129. data/lib/lutaml/xml/schema/xsd_schema.rb +1 -1
  130. data/lib/lutaml/xml/serialization/format_conversion.rb +6 -0
  131. data/lib/lutaml/xml/xsd_validator.rb +1 -1
  132. data/lutaml-model.gemspec +2 -0
  133. data/spec/lml/fixtures/dsl/broken_diagram.lutaml +34 -0
  134. data/spec/lml/fixtures/dsl/diagram.lutaml +4 -0
  135. data/spec/lml/fixtures/dsl/diagram_attributes.lutaml +6 -0
  136. data/spec/lml/fixtures/dsl/diagram_blank_definion.lutaml +6 -0
  137. data/spec/lml/fixtures/dsl/diagram_blank_entities.lutaml +8 -0
  138. data/spec/lml/fixtures/dsl/diagram_class_assocation.lutaml +29 -0
  139. data/spec/lml/fixtures/dsl/diagram_class_fields.lutaml +25 -0
  140. data/spec/lml/fixtures/dsl/diagram_commented_includes.lutaml +5 -0
  141. data/spec/lml/fixtures/dsl/diagram_comments.lutaml +28 -0
  142. data/spec/lml/fixtures/dsl/diagram_concept_model.lutaml +132 -0
  143. data/spec/lml/fixtures/dsl/diagram_data_types.lutaml +44 -0
  144. data/spec/lml/fixtures/dsl/diagram_definitions.lutaml +25 -0
  145. data/spec/lml/fixtures/dsl/diagram_includes.lutaml +6 -0
  146. data/spec/lml/fixtures/dsl/diagram_multiply_classes.lutaml +7 -0
  147. data/spec/lml/fixtures/dsl/diagram_non_existing_include.lutaml +6 -0
  148. data/spec/lml/fixtures/dsl/shared.lutaml +5 -0
  149. data/spec/lml/fixtures/dsl/shared1.lutaml +4 -0
  150. data/spec/lml/fixtures/generated_dot/AddressClassProfile.dot +170 -0
  151. data/spec/lml/fixtures/generated_dot/AddressProfile.dot +34 -0
  152. data/spec/lml/fixtures/generated_dot/address_class_profile_with_associations.dot +127 -0
  153. data/spec/lml/fixtures/generated_dot/address_profile_with_associations.dot +28 -0
  154. data/spec/lml/fixtures/generated_dot/document.dot +28 -0
  155. data/spec/lml/fixtures/generated_dot/document.dot.backup +33 -0
  156. data/spec/lml/fixtures/generated_dot/document_with_fidelity.dot +27 -0
  157. data/spec/lml/fixtures/lml/data_s102_check.lml +79 -0
  158. data/spec/lml/fixtures/lml/data_s158_metadata.lml +28 -0
  159. data/spec/lml/fixtures/lml/iho_data_models.lml +59 -0
  160. data/spec/lml/fixtures/lml/iho_s102_check.lml +101 -0
  161. data/spec/lml/fixtures/mixed_lml/diagram.lml +26 -0
  162. data/spec/lml/fixtures/mixed_lml/instances.lml +72 -0
  163. data/spec/lml/fixtures/mixed_lml/model.lml +30 -0
  164. data/spec/lml/fixtures/real_world/basicdoc-models/AdmonitionType.lutaml +32 -0
  165. data/spec/lml/fixtures/real_world/basicdoc-models/BasicBlock.lutaml +11 -0
  166. data/spec/lml/fixtures/real_world/basicdoc-models/BasicDocument.lutaml +41 -0
  167. data/spec/lml/fixtures/real_world/basicdoc-models/BasicSection.lutaml +38 -0
  168. data/spec/lml/fixtures/real_world/basicdoc-models/BibliographicItem.lutaml +6 -0
  169. data/spec/lml/fixtures/real_world/basicdoc-models/FigureBlock.lutaml +65 -0
  170. data/spec/lml/fixtures/real_world/basicdoc-models/FormattedString.lutaml +12 -0
  171. data/spec/lml/fixtures/real_world/basicdoc-models/List.lutaml +12 -0
  172. data/spec/lml/fixtures/real_world/basicdoc-models/OrderedListType.lutaml +32 -0
  173. data/spec/lml/fixtures/real_world/basicdoc-models/Signature.lutaml +22 -0
  174. data/spec/lml/fixtures/real_world/basicdoc-models/String.lutaml +2 -0
  175. data/spec/lml/fixtures/real_world/basicdoc-models/TableBlock.lutaml +60 -0
  176. data/spec/lml/fixtures/real_world/basicdoc-models/TextElement.lutaml +13 -0
  177. data/spec/lml/fixtures/real_world/basicdoc-models/Uri.lutaml +7 -0
  178. data/spec/lml/fixtures/real_world/metanorma-model-iso/BibliographicItem.lutaml +4 -0
  179. data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoAdmonitionType.lutaml +31 -0
  180. data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoBibDataExtensionType.lutaml +40 -0
  181. data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoSections.lutaml +30 -0
  182. data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoStandardDocument.lutaml +46 -0
  183. data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoTerm.lutaml +20 -0
  184. data/spec/lml/fixtures/real_world/metanorma-model-iso/StandardBibDataExtensionType.lutaml +2 -0
  185. data/spec/lml/fixtures/real_world/metanorma-model-iso/StandardDocument.lutaml +2 -0
  186. data/spec/lml/fixtures/rs3001/01_class_tail_comment.lml +5 -0
  187. data/spec/lml/fixtures/rs3001/02_definition_block.lml +9 -0
  188. data/spec/lml/fixtures/rs3001/03_package_ceramics.lml +20 -0
  189. data/spec/lml/fixtures/rs3001/04_attribute_definition_form.lml +10 -0
  190. data/spec/lml/fixtures/rs3001/05_attribute_cardinality_unbounded.lml +10 -0
  191. data/spec/lml/fixtures/rs3001/06_attribute_values_set.lml +10 -0
  192. data/spec/lml/fixtures/rs3001/07_attribute_pattern.lml +10 -0
  193. data/spec/lml/fixtures/rs3001/08_attribute_default_colon.lml +15 -0
  194. data/spec/lml/fixtures/rs3001/09_value_porcelain.lml +9 -0
  195. data/spec/lml/fixtures/rs3001/10_enum_glaze_technique.lml +19 -0
  196. data/spec/lml/fixtures/rs3001/11_enum_values_as_instances.lml +29 -0
  197. data/spec/lml/fixtures/rs3001/12_instance_named.lml +13 -0
  198. data/spec/lml/fixtures/rs3001/13_instances_collection_refs.lml +11 -0
  199. data/spec/lml/fixtures/rs3001/14_require_models.lml +7 -0
  200. data/spec/lml/fixtures/rs3001/15_comment_line.lml +1 -0
  201. data/spec/lml/fixtures/rs3001/16_comment_tail.lml +5 -0
  202. data/spec/lml/fixtures/rs3001/17_comment_documented_class.lml +5 -0
  203. data/spec/lml/fixtures/rs3001/18_comment_block.lml +4 -0
  204. data/spec/lml/fixtures/rs3001/19_top_level_instance_definition.lml +21 -0
  205. data/spec/lml/fixtures/rs3001/20_instance_typed_definition.lml +22 -0
  206. data/spec/lml/fixtures/rs3001/21_instance_collection_studios.lml +19 -0
  207. data/spec/lml/fixtures/rs3001/22_instance_collection_tiles.lml +15 -0
  208. data/spec/lml/fixtures/rs3001/23_reference_cross_collection.lml +11 -0
  209. data/spec/lml/fixtures/rs3001/24_null_and_empty.lml +15 -0
  210. data/spec/lml/fixtures/rs3001/25_string_escapes.lml +23 -0
  211. data/spec/lml/fixtures/rs3001/26_quoted_keys.lml +7 -0
  212. data/spec/lml/fixtures/test.lutaml +20 -0
  213. data/spec/lml/fixtures/test_data/components.csv +4 -0
  214. data/spec/lml/fixtures/test_data/products.xml +18 -0
  215. data/spec/lml/fixtures/uml/address_class_profile_with_associations.yml +58 -0
  216. data/spec/lml/fixtures/uml/address_profile_with_associations.yml +31 -0
  217. data/spec/lml/fixtures/uml/association.yml +11 -0
  218. data/spec/lml/fixtures/uml/class.yml +28 -0
  219. data/spec/lml/fixtures/uml/data_type.yml +30 -0
  220. data/spec/lml/fixtures/uml/diagram.yml +7 -0
  221. data/spec/lml/fixtures/uml/document.yml +44 -0
  222. data/spec/lml/fixtures/uml/document_with_fidelity.yml +47 -0
  223. data/spec/lml/fixtures/uml/enum.yml +14 -0
  224. data/spec/lml/fixtures/uml/operation.yml +8 -0
  225. data/spec/lml/fixtures/uml/package.yml +10 -0
  226. data/spec/lml/fixtures/uml/top_element.yml +11 -0
  227. data/spec/lml/fixtures/uml/top_element_attribute.yml +10 -0
  228. data/spec/lml/fixtures/uml/trigger.yml +12 -0
  229. data/spec/lml/fixtures/uml/value.yml +8 -0
  230. data/spec/lml/fixtures/view/cycle_a.lutaml +3 -0
  231. data/spec/lml/fixtures/view/cycle_b.lutaml +3 -0
  232. data/spec/lml/fixtures/view/import_model.lutaml +3 -0
  233. data/spec/lml/fixtures/view/import_view.lutaml +3 -0
  234. data/spec/lml/fixtures/view/import_with_hide.lutaml +4 -0
  235. data/spec/lml/fixtures/view/import_with_show.lutaml +4 -0
  236. data/spec/lml/fixtures/view/models/bar.lutaml +3 -0
  237. data/spec/lml/fixtures/view/models/baz.lutaml +3 -0
  238. data/spec/lml/fixtures/view/models/foo.lutaml +4 -0
  239. data/spec/lml/integration/instance_import_export_spec.rb +102 -0
  240. data/spec/lml/lml_spec_setup.rb +25 -0
  241. data/spec/lml/lutaml/lml/association_label_resolver_spec.rb +139 -0
  242. data/spec/lml/lutaml/lml/data_processor_spec.rb +274 -0
  243. data/spec/lml/lutaml/lml/declarations_spec.rb +337 -0
  244. data/spec/lml/lutaml/lml/document_builder_registry_spec.rb +52 -0
  245. data/spec/lml/lutaml/lml/document_builder_spec.rb +99 -0
  246. data/spec/lml/lutaml/lml/element_visibility_spec.rb +128 -0
  247. data/spec/lml/lutaml/lml/entity_types_spec.rb +56 -0
  248. data/spec/lml/lutaml/lml/enum_spec.rb +77 -0
  249. data/spec/lml/lutaml/lml/executor/adapter_helpers_spec.rb +96 -0
  250. data/spec/lml/lutaml/lml/executor/condition_evaluator_spec.rb +393 -0
  251. data/spec/lml/lutaml/lml/executor/csv_adapter_spec.rb +151 -0
  252. data/spec/lml/lutaml/lml/executor/format_adapter_spec.rb +31 -0
  253. data/spec/lml/lutaml/lml/executor/xml_adapter_spec.rb +201 -0
  254. data/spec/lml/lutaml/lml/executor_spec.rb +71 -0
  255. data/spec/lml/lutaml/lml/format_adapter_spec.rb +272 -0
  256. data/spec/lml/lutaml/lml/format_autoload_spec.rb +31 -0
  257. data/spec/lml/lutaml/lml/grammar_spec.rb +581 -0
  258. data/spec/lml/lutaml/lml/has_attributes_spec.rb +54 -0
  259. data/spec/lml/lutaml/lml/import_resolver_spec.rb +116 -0
  260. data/spec/lml/lutaml/lml/instance_hydration_spec.rb +178 -0
  261. data/spec/lml/lutaml/lml/lsp/server_spec.rb +285 -0
  262. data/spec/lml/lutaml/lml/model_compiler_spec.rb +406 -0
  263. data/spec/lml/lutaml/lml/models/association_spec.rb +40 -0
  264. data/spec/lml/lutaml/lml/models/collection_spec.rb +27 -0
  265. data/spec/lml/lutaml/lml/models/data_type_spec.rb +34 -0
  266. data/spec/lml/lutaml/lml/models/diagram_spec.rb +18 -0
  267. data/spec/lml/lutaml/lml/models/document_spec.rb +64 -0
  268. data/spec/lml/lutaml/lml/models/enum_spec.rb +42 -0
  269. data/spec/lml/lutaml/lml/models/inheritance_spec.rb +77 -0
  270. data/spec/lml/lutaml/lml/models/instance_collection_spec.rb +62 -0
  271. data/spec/lml/lutaml/lml/models/instance_spec.rb +81 -0
  272. data/spec/lml/lutaml/lml/models/instances_export_spec.rb +23 -0
  273. data/spec/lml/lutaml/lml/models/instances_import_spec.rb +28 -0
  274. data/spec/lml/lutaml/lml/models/package_spec.rb +26 -0
  275. data/spec/lml/lutaml/lml/models/primitive_type_spec.rb +34 -0
  276. data/spec/lml/lutaml/lml/models/top_element_attribute_spec.rb +153 -0
  277. data/spec/lml/lutaml/lml/models/uml_class_spec.rb +70 -0
  278. data/spec/lml/lutaml/lml/models_version_spec.rb +27 -0
  279. data/spec/lml/lutaml/lml/operations_spec.rb +59 -0
  280. data/spec/lml/lutaml/lml/parser_spec.rb +348 -0
  281. data/spec/lml/lutaml/lml/pipeline_spec.rb +93 -0
  282. data/spec/lml/lutaml/lml/preprocessor_spec.rb +174 -0
  283. data/spec/lml/lutaml/lml/property_laws_spec.rb +344 -0
  284. data/spec/lml/lutaml/lml/real_world_spec.rb +191 -0
  285. data/spec/lml/lutaml/lml/reference_spec.rb +64 -0
  286. data/spec/lml/lutaml/lml/round_trip_spec.rb +457 -0
  287. data/spec/lml/lutaml/lml/rs3001_corpus_spec.rb +83 -0
  288. data/spec/lml/lutaml/lml/rs3001_syntax_spec.rb +77 -0
  289. data/spec/lml/lutaml/lml/serialization_mapping_spec.rb +127 -0
  290. data/spec/lml/lutaml/lml/source_spec.rb +62 -0
  291. data/spec/lml/lutaml/lml/transform_spec.rb +37 -0
  292. data/spec/lml/lutaml/lml/types/text_type_spec.rb +43 -0
  293. data/spec/lml/lutaml/lml/validator_spec.rb +238 -0
  294. data/spec/lml/lutaml/lml/view_resolver_spec.rb +78 -0
  295. data/spec/lml/lutaml/lml/view_spec.rb +112 -0
  296. data/spec/lml/lutaml/parsers/dsl_spec.rb +275 -0
  297. data/spec/lml/lutaml/parsers/yaml_spec.rb +52 -0
  298. data/spec/lml/lutaml/qualified_type_spec.rb +33 -0
  299. data/spec/lutaml/model/adapter_type_unset_restore_spec.rb +61 -0
  300. data/spec/lutaml/model/custom_bibtex_adapter_spec.rb +4 -1
  301. data/spec/lutaml/xml/adapter/moxml_lane_spec.rb +112 -0
  302. data/spec/lutaml/xml/adapter_metadata_default_spec.rb +21 -2
  303. data/spec/lutaml/xml/adapter_moxml_engine_spec.rb +57 -0
  304. data/spec/lutaml/xml/leptris/native_emission_plain_model_spec.rb +50 -0
  305. data/spec/lutaml/xml/plain_model_mapping_resolution_spec.rb +88 -0
  306. data/spec/lutaml/xml/schema/xsd/vc_versioning_spec.rb +49 -0
  307. data/spec/lutaml/xml/schema/xsd/xsd_11_constructs_spec.rb +83 -0
  308. metadata +286 -2
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+ require "lutaml/model"
5
+
6
+ # Regression spec (0.8.186, #1212 follow-up): the per-unit namespace
7
+ # child-matching added for XmlCompiler-derived models consults
8
+ # `session.xml_mapping` while a rule's child candidates are scanned. The
9
+ # session's model class may be a PLAIN class (declared via `model
10
+ # PlainClass`, e.g. relaton's Bibcollection carried by its
11
+ # relaton-collection mapper), and a plain class does not answer
12
+ # `mappings_for` — so the unguarded call raised NoMethodError mid-parse
13
+ # and every XML parse of such a document failed with
14
+ # Lutaml::Model::InvalidFormatError. Observed consumer breakage:
15
+ # relaton-cli's XmlToHtmlRenderer suite failed on lutaml-model 0.8.186
16
+ # (relaton CI, 2026-11-26).
17
+ #
18
+ # The fix resolves the session mapping only when the instance is a
19
+ # Lutaml::Model::Serialize (XmlCompiler-derived models are Serializable,
20
+ # so #1212's namespace matching is unchanged); plain models resolve no
21
+ # session mapping and the parse behaves exactly as before 0.8.186.
22
+ RSpec.describe "Plain model parse does not resolve the session mapping" do
23
+ let(:plain_collection_class) do
24
+ Class.new do
25
+ attr_accessor :title
26
+ end
27
+ end
28
+
29
+ let(:collection_namespace_class) do
30
+ Class.new(Lutaml::Xml::W3c::XmlNamespace) do
31
+ uri "https://example.org/collection"
32
+ prefix_default "c"
33
+ element_form_default :qualified
34
+ end
35
+ end
36
+
37
+ let(:mapper_class) do
38
+ pc = plain_collection_class
39
+ ns = collection_namespace_class
40
+
41
+ Class.new(Lutaml::Model::Serializable) do
42
+ model pc
43
+ attribute :title, :string
44
+
45
+ xml do
46
+ root "collection"
47
+ namespace ns
48
+ map_element "title", to: :title
49
+ end
50
+
51
+ def self.name
52
+ "PlainModelCollectionMapper"
53
+ end
54
+ end
55
+ end
56
+
57
+ # The child shares the rule's local name but spells a foreign namespace:
58
+ # it misses the exact, alias and prefix branches and reaches the
59
+ # declaring-model-namespace branch added by #1212, which is the call
60
+ # site that resolved the session mapping.
61
+ let(:xml) do
62
+ <<~XML
63
+ <c:collection xmlns:c="#{collection_namespace_class.uri}"
64
+ xmlns:f="https://example.org/foreign">
65
+ <f:title>alien namespace</f:title>
66
+ </c:collection>
67
+ XML
68
+ end
69
+
70
+ it "parses a document whose child shares a rule's local name in a foreign namespace" do
71
+ instance = mapper_class.from_xml(xml)
72
+
73
+ expect(instance).to be_a(plain_collection_class)
74
+ expect(instance.title).to be_nil
75
+ end
76
+
77
+ it "still binds a rule-spelled child of a plain-model document" do
78
+ xml = <<~XML
79
+ <c:collection xmlns:c="#{collection_namespace_class.uri}">
80
+ <c:title>in namespace</c:title>
81
+ </c:collection>
82
+ XML
83
+
84
+ instance = mapper_class.from_xml(xml)
85
+
86
+ expect(instance.title).to eq("in namespace")
87
+ end
88
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ # lutaml/lutaml-model#1222: the XSD 1.1 versioning markers
6
+ # (vc:minVersion / vc:maxVersion, XSD 1.1 §C.1) dropped at parse and
7
+ # roundtrip — the engine tier compiles the 1.1-only constructs
8
+ # (alternatives, openContent, assertions) only when the marker
9
+ # survives to compilation, so the loss gated the CTA family through
10
+ # the roundtrip compile.
11
+ RSpec.describe "the vc: versioning markers on XSD Schema (#1222)" do
12
+ let(:schema_xml) do
13
+ <<~XSD
14
+ <?xml version="1.0" encoding="UTF-8"?>
15
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
16
+ xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
17
+ vc:minVersion="1.1">
18
+ <xs:element name="doc">
19
+ <xs:complexType>
20
+ <xs:sequence><xs:element name="a"/></xs:sequence>
21
+ </xs:complexType>
22
+ </xs:element>
23
+ </xs:schema>
24
+ XSD
25
+ end
26
+
27
+ it "parses vc:minVersion into the model" do
28
+ schema = Lutaml::Xml::Schema::Xsd.parse(schema_xml)
29
+
30
+ expect(schema.vc_min_version).to eq("1.1")
31
+ end
32
+
33
+ it "roundtrips vc:minVersion back into the markup" do
34
+ schema = Lutaml::Xml::Schema::Xsd.parse(schema_xml)
35
+ out = schema.to_xml
36
+
37
+ expect(out).to include("minVersion=\"1.1\"")
38
+ expect(out).to include("http://www.w3.org/2007/XMLSchema-versioning")
39
+ end
40
+
41
+ it "carries vc:maxVersion the same way" do
42
+ schema = Lutaml::Xml::Schema::Xsd.parse(
43
+ schema_xml.gsub('vc:minVersion="1.1"', 'vc:maxVersion="1.0"'),
44
+ )
45
+
46
+ expect(schema.vc_max_version).to eq("1.0")
47
+ expect(schema.to_xml).to include("maxVersion=\"1.0\"")
48
+ end
49
+ end
@@ -117,4 +117,87 @@ RSpec.describe "XSD 1.1 constructs (#1203)" do
117
117
  expect(emitted).to include("<xs:alternative")
118
118
  expect(emitted).to include('type="T"')
119
119
  end
120
+
121
+ it "maps xs:assertion on a simpleType restriction" do
122
+ xsd = <<~XSD
123
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
124
+ <xs:simpleType name="num">
125
+ <xs:restriction base="xs:string">
126
+ <xs:assertion test="$value castable as xs:double"/>
127
+ </xs:restriction>
128
+ </xs:simpleType>
129
+ </xs:schema>
130
+ XSD
131
+
132
+ schema = Lutaml::Xml::Schema::Xsd.parse(xsd)
133
+ assertion = schema.simple_type.first.restriction.assertion.first
134
+
135
+ expect(assertion).not_to be_nil
136
+ expect(assertion.test).to eq("$value castable as xs:double")
137
+ end
138
+
139
+ it "keeps the xs:any wildcard on xs:openContent" do
140
+ xsd = <<~XSD
141
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
142
+ <xs:complexType name="t">
143
+ <xs:sequence>
144
+ <xs:element name="a"/>
145
+ </xs:sequence>
146
+ <xs:openContent mode="interleave">
147
+ <xs:any namespace="http://open.example/" processContents="lax"/>
148
+ </xs:openContent>
149
+ </xs:complexType>
150
+ </xs:schema>
151
+ XSD
152
+
153
+ schema = Lutaml::Xml::Schema::Xsd.parse(xsd)
154
+ any = schema.complex_type.first.open_content.any
155
+
156
+ expect(any).not_to be_nil
157
+ expect(any.namespace).to eq("http://open.example/")
158
+ expect(any.process_contents).to eq("lax")
159
+ end
160
+
161
+ it "keeps the wildcard negation attributes on xs:any and xs:anyAttribute (#1221)" do
162
+ xsd = <<~XSD
163
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
164
+ <xs:complexType name="t">
165
+ <xs:sequence>
166
+ <xs:any notQName="xs:foo ##local" processContents="lax"/>
167
+ </xs:sequence>
168
+ <xs:anyAttribute notNamespace="http://apple.com/ http://devil.com/"
169
+ processContents="skip"/>
170
+ </xs:complexType>
171
+ </xs:schema>
172
+ XSD
173
+
174
+ schema = Lutaml::Xml::Schema::Xsd.parse(xsd)
175
+ complex_type = schema.complex_type.first
176
+
177
+ aggregate_failures do
178
+ expect(complex_type.sequence.any.first.not_qname).to eq("xs:foo ##local")
179
+ expect(complex_type.any_attribute.not_namespace)
180
+ .to eq("http://apple.com/ http://devil.com/")
181
+ end
182
+ end
183
+
184
+ it "round-trips the wildcard negation attributes through to_xml (#1221)" do
185
+ xsd = <<~XSD
186
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
187
+ <xs:complexType name="t">
188
+ <xs:sequence>
189
+ <xs:any notQName="##targetNamespace" processContents="lax"/>
190
+ </xs:sequence>
191
+ <xs:anyAttribute notNamespace="##local" processContents="skip"/>
192
+ </xs:complexType>
193
+ </xs:schema>
194
+ XSD
195
+
196
+ out = Lutaml::Xml::Schema::Xsd.parse(xsd).to_xml
197
+
198
+ aggregate_failures do
199
+ expect(out).to include('notQName="##targetNamespace"')
200
+ expect(out).to include('notNamespace="##local"')
201
+ end
202
+ end
120
203
  end
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.186
4
+ version: 0.8.188
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-11-26 00:00:00.000000000 Z
11
+ date: 2026-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -114,6 +114,20 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: parsanol
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 1.5.0
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.5.0
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: rubyzip
119
133
  requirement: !ruby/object:Gem::Requirement
@@ -148,6 +162,7 @@ description: 'LutaML creating data models in Ruby
148
162
  email:
149
163
  - open.source@ribose.com
150
164
  executables:
165
+ - lutaml-lml-lsp
151
166
  - lutaml-model
152
167
  extensions: []
153
168
  extra_rdoc_files: []
@@ -155,6 +170,7 @@ files:
155
170
  - ".envrc"
156
171
  - ".github/scripts/test_installed_gem.rb"
157
172
  - ".github/workflows/dependent-repos-todo.json"
173
+ - ".github/workflows/dependent-repos-tools-informational.json"
158
174
  - ".github/workflows/dependent-repos-tools.json"
159
175
  - ".github/workflows/dependent-repos.json"
160
176
  - ".github/workflows/dependent-tests.yml"
@@ -310,6 +326,7 @@ files:
310
326
  - docs/namespace-management.adoc
311
327
  - docs/xml-schema-qualification.md
312
328
  - docs/yamls_sequence.adoc
329
+ - exe/lutaml-lml-lsp
313
330
  - exe/lutaml-model
314
331
  - flake.lock
315
332
  - flake.nix
@@ -419,6 +436,99 @@ files:
419
436
  - lib/lutaml/key_value/transformation/rule_compiler.rb
420
437
  - lib/lutaml/key_value/transformation/value_serializer.rb
421
438
  - lib/lutaml/key_value/transformation_builder.rb
439
+ - lib/lutaml/lml.rb
440
+ - lib/lutaml/lml/association_label_resolver.rb
441
+ - lib/lutaml/lml/data_processor.rb
442
+ - lib/lutaml/lml/data_processor/attribute_processing.rb
443
+ - lib/lutaml/lml/data_processor/collection_processing.rb
444
+ - lib/lutaml/lml/data_processor/instance_processing.rb
445
+ - lib/lutaml/lml/data_processor/value_declaration_processing.rb
446
+ - lib/lutaml/lml/data_processor/value_processing.rb
447
+ - lib/lutaml/lml/data_processor/view_processing.rb
448
+ - lib/lutaml/lml/diagnostic.rb
449
+ - lib/lutaml/lml/document_builder.rb
450
+ - lib/lutaml/lml/entity_types.rb
451
+ - lib/lutaml/lml/executor.rb
452
+ - lib/lutaml/lml/executor/adapter_helpers.rb
453
+ - lib/lutaml/lml/executor/condition_evaluator.rb
454
+ - lib/lutaml/lml/executor/csv_adapter.rb
455
+ - lib/lutaml/lml/executor/format_adapter.rb
456
+ - lib/lutaml/lml/executor/xml_adapter.rb
457
+ - lib/lutaml/lml/format.rb
458
+ - lib/lutaml/lml/format/adapter/document.rb
459
+ - lib/lutaml/lml/format/adapter/mapping.rb
460
+ - lib/lutaml/lml/format/adapter/standard_adapter.rb
461
+ - lib/lutaml/lml/format/adapter/transform.rb
462
+ - lib/lutaml/lml/formatter.rb
463
+ - lib/lutaml/lml/formatter/base.rb
464
+ - lib/lutaml/lml/formatter/canonical.rb
465
+ - lib/lutaml/lml/grammar.rb
466
+ - lib/lutaml/lml/grammar/lml.artifact.json
467
+ - lib/lutaml/lml/grammar/lml.parg
468
+ - lib/lutaml/lml/has_attributes.rb
469
+ - lib/lutaml/lml/import_resolver.rb
470
+ - lib/lutaml/lml/layout.rb
471
+ - lib/lutaml/lml/layout/engine.rb
472
+ - lib/lutaml/lml/literal_value.rb
473
+ - lib/lutaml/lml/lsp.rb
474
+ - lib/lutaml/lml/lsp/conversions.rb
475
+ - lib/lutaml/lml/lsp/keywords.rb
476
+ - lib/lutaml/lml/lsp/server.rb
477
+ - lib/lutaml/lml/lsp/store.rb
478
+ - lib/lutaml/lml/lsp/transport.rb
479
+ - lib/lutaml/lml/model_compiler.rb
480
+ - lib/lutaml/lml/model_compiler/enums.rb
481
+ - lib/lutaml/lml/model_compiler/hydration.rb
482
+ - lib/lutaml/lml/model_compiler/serialization_mappings.rb
483
+ - lib/lutaml/lml/model_compiler/string_formats.rb
484
+ - lib/lutaml/lml/model_compiler/validation.rb
485
+ - lib/lutaml/lml/models/action.rb
486
+ - lib/lutaml/lml/models/association.rb
487
+ - lib/lutaml/lml/models/cardinality.rb
488
+ - lib/lutaml/lml/models/collection.rb
489
+ - lib/lutaml/lml/models/constraint.rb
490
+ - lib/lutaml/lml/models/data_type.rb
491
+ - lib/lutaml/lml/models/derived_field.rb
492
+ - lib/lutaml/lml/models/diagram.rb
493
+ - lib/lutaml/lml/models/document.rb
494
+ - lib/lutaml/lml/models/enum.rb
495
+ - lib/lutaml/lml/models/fidelity.rb
496
+ - lib/lutaml/lml/models/group.rb
497
+ - lib/lutaml/lml/models/instance.rb
498
+ - lib/lutaml/lml/models/instance_collection.rb
499
+ - lib/lutaml/lml/models/instances_export.rb
500
+ - lib/lutaml/lml/models/instances_import.rb
501
+ - lib/lutaml/lml/models/mapping.rb
502
+ - lib/lutaml/lml/models/mapping_rule.rb
503
+ - lib/lutaml/lml/models/member_field.rb
504
+ - lib/lutaml/lml/models/namespace.rb
505
+ - lib/lutaml/lml/models/operation.rb
506
+ - lib/lutaml/lml/models/operation_parameter.rb
507
+ - lib/lutaml/lml/models/package.rb
508
+ - lib/lutaml/lml/models/primitive_type.rb
509
+ - lib/lutaml/lml/models/reference.rb
510
+ - lib/lutaml/lml/models/serialization_mapping.rb
511
+ - lib/lutaml/lml/models/string_format.rb
512
+ - lib/lutaml/lml/models/top_element_attribute.rb
513
+ - lib/lutaml/lml/models/uml_class.rb
514
+ - lib/lutaml/lml/models/value.rb
515
+ - lib/lutaml/lml/models/view_filter.rb
516
+ - lib/lutaml/lml/models/view_import.rb
517
+ - lib/lutaml/lml/parser.rb
518
+ - lib/lutaml/lml/pipeline.rb
519
+ - lib/lutaml/lml/positioned.rb
520
+ - lib/lutaml/lml/preprocessor.rb
521
+ - lib/lutaml/lml/quoting.rb
522
+ - lib/lutaml/lml/source.rb
523
+ - lib/lutaml/lml/source_position.rb
524
+ - lib/lutaml/lml/symbol_index.rb
525
+ - lib/lutaml/lml/transform.rb
526
+ - lib/lutaml/lml/types.rb
527
+ - lib/lutaml/lml/types/text_type.rb
528
+ - lib/lutaml/lml/validator.rb
529
+ - lib/lutaml/lml/view_resolution.rb
530
+ - lib/lutaml/lml/view_resolver.rb
531
+ - lib/lutaml/lml/yaml_parser.rb
422
532
  - lib/lutaml/model.rb
423
533
  - lib/lutaml/model/adapter_resolver.rb
424
534
  - lib/lutaml/model/adapter_scope.rb
@@ -768,6 +878,7 @@ files:
768
878
  - lib/lutaml/xml/adapter/adapter_helpers.rb
769
879
  - lib/lutaml/xml/adapter/base_adapter.rb
770
880
  - lib/lutaml/xml/adapter/leptris_adapter.rb
881
+ - lib/lutaml/xml/adapter/moxml_adapter.rb
771
882
  - lib/lutaml/xml/adapter/namespace_data.rb
772
883
  - lib/lutaml/xml/adapter/namespace_uri_collector.rb
773
884
  - lib/lutaml/xml/adapter/nokogiri_adapter.rb
@@ -881,6 +992,7 @@ files:
881
992
  - lib/lutaml/xml/schema/builder/oga.rb
882
993
  - lib/lutaml/xml/schema/builtin_types.rb
883
994
  - lib/lutaml/xml/schema/relaxng_schema.rb
995
+ - lib/lutaml/xml/schema/vc_namespace.rb
884
996
  - lib/lutaml/xml/schema/xsd.rb
885
997
  - lib/lutaml/xml/schema/xsd/all.rb
886
998
  - lib/lutaml/xml/schema/xsd/alternative.rb
@@ -1742,6 +1854,172 @@ files:
1742
1854
  - spec/fixtures/xml/validate_xml_with_person_strict.xsd
1743
1855
  - spec/fixtures/xml/validate_xml_with_product.xsd
1744
1856
  - spec/fixtures/yamls_range_concept.rb
1857
+ - spec/lml/fixtures/dsl/broken_diagram.lutaml
1858
+ - spec/lml/fixtures/dsl/diagram.lutaml
1859
+ - spec/lml/fixtures/dsl/diagram_attributes.lutaml
1860
+ - spec/lml/fixtures/dsl/diagram_blank_definion.lutaml
1861
+ - spec/lml/fixtures/dsl/diagram_blank_entities.lutaml
1862
+ - spec/lml/fixtures/dsl/diagram_class_assocation.lutaml
1863
+ - spec/lml/fixtures/dsl/diagram_class_fields.lutaml
1864
+ - spec/lml/fixtures/dsl/diagram_commented_includes.lutaml
1865
+ - spec/lml/fixtures/dsl/diagram_comments.lutaml
1866
+ - spec/lml/fixtures/dsl/diagram_concept_model.lutaml
1867
+ - spec/lml/fixtures/dsl/diagram_data_types.lutaml
1868
+ - spec/lml/fixtures/dsl/diagram_definitions.lutaml
1869
+ - spec/lml/fixtures/dsl/diagram_includes.lutaml
1870
+ - spec/lml/fixtures/dsl/diagram_multiply_classes.lutaml
1871
+ - spec/lml/fixtures/dsl/diagram_non_existing_include.lutaml
1872
+ - spec/lml/fixtures/dsl/shared.lutaml
1873
+ - spec/lml/fixtures/dsl/shared1.lutaml
1874
+ - spec/lml/fixtures/generated_dot/AddressClassProfile.dot
1875
+ - spec/lml/fixtures/generated_dot/AddressProfile.dot
1876
+ - spec/lml/fixtures/generated_dot/address_class_profile_with_associations.dot
1877
+ - spec/lml/fixtures/generated_dot/address_profile_with_associations.dot
1878
+ - spec/lml/fixtures/generated_dot/document.dot
1879
+ - spec/lml/fixtures/generated_dot/document.dot.backup
1880
+ - spec/lml/fixtures/generated_dot/document_with_fidelity.dot
1881
+ - spec/lml/fixtures/lml/data_s102_check.lml
1882
+ - spec/lml/fixtures/lml/data_s158_metadata.lml
1883
+ - spec/lml/fixtures/lml/iho_data_models.lml
1884
+ - spec/lml/fixtures/lml/iho_s102_check.lml
1885
+ - spec/lml/fixtures/mixed_lml/diagram.lml
1886
+ - spec/lml/fixtures/mixed_lml/instances.lml
1887
+ - spec/lml/fixtures/mixed_lml/model.lml
1888
+ - spec/lml/fixtures/real_world/basicdoc-models/AdmonitionType.lutaml
1889
+ - spec/lml/fixtures/real_world/basicdoc-models/BasicBlock.lutaml
1890
+ - spec/lml/fixtures/real_world/basicdoc-models/BasicDocument.lutaml
1891
+ - spec/lml/fixtures/real_world/basicdoc-models/BasicSection.lutaml
1892
+ - spec/lml/fixtures/real_world/basicdoc-models/BibliographicItem.lutaml
1893
+ - spec/lml/fixtures/real_world/basicdoc-models/FigureBlock.lutaml
1894
+ - spec/lml/fixtures/real_world/basicdoc-models/FormattedString.lutaml
1895
+ - spec/lml/fixtures/real_world/basicdoc-models/List.lutaml
1896
+ - spec/lml/fixtures/real_world/basicdoc-models/OrderedListType.lutaml
1897
+ - spec/lml/fixtures/real_world/basicdoc-models/Signature.lutaml
1898
+ - spec/lml/fixtures/real_world/basicdoc-models/String.lutaml
1899
+ - spec/lml/fixtures/real_world/basicdoc-models/TableBlock.lutaml
1900
+ - spec/lml/fixtures/real_world/basicdoc-models/TextElement.lutaml
1901
+ - spec/lml/fixtures/real_world/basicdoc-models/Uri.lutaml
1902
+ - spec/lml/fixtures/real_world/metanorma-model-iso/BibliographicItem.lutaml
1903
+ - spec/lml/fixtures/real_world/metanorma-model-iso/IsoAdmonitionType.lutaml
1904
+ - spec/lml/fixtures/real_world/metanorma-model-iso/IsoBibDataExtensionType.lutaml
1905
+ - spec/lml/fixtures/real_world/metanorma-model-iso/IsoSections.lutaml
1906
+ - spec/lml/fixtures/real_world/metanorma-model-iso/IsoStandardDocument.lutaml
1907
+ - spec/lml/fixtures/real_world/metanorma-model-iso/IsoTerm.lutaml
1908
+ - spec/lml/fixtures/real_world/metanorma-model-iso/StandardBibDataExtensionType.lutaml
1909
+ - spec/lml/fixtures/real_world/metanorma-model-iso/StandardDocument.lutaml
1910
+ - spec/lml/fixtures/rs3001/01_class_tail_comment.lml
1911
+ - spec/lml/fixtures/rs3001/02_definition_block.lml
1912
+ - spec/lml/fixtures/rs3001/03_package_ceramics.lml
1913
+ - spec/lml/fixtures/rs3001/04_attribute_definition_form.lml
1914
+ - spec/lml/fixtures/rs3001/05_attribute_cardinality_unbounded.lml
1915
+ - spec/lml/fixtures/rs3001/06_attribute_values_set.lml
1916
+ - spec/lml/fixtures/rs3001/07_attribute_pattern.lml
1917
+ - spec/lml/fixtures/rs3001/08_attribute_default_colon.lml
1918
+ - spec/lml/fixtures/rs3001/09_value_porcelain.lml
1919
+ - spec/lml/fixtures/rs3001/10_enum_glaze_technique.lml
1920
+ - spec/lml/fixtures/rs3001/11_enum_values_as_instances.lml
1921
+ - spec/lml/fixtures/rs3001/12_instance_named.lml
1922
+ - spec/lml/fixtures/rs3001/13_instances_collection_refs.lml
1923
+ - spec/lml/fixtures/rs3001/14_require_models.lml
1924
+ - spec/lml/fixtures/rs3001/15_comment_line.lml
1925
+ - spec/lml/fixtures/rs3001/16_comment_tail.lml
1926
+ - spec/lml/fixtures/rs3001/17_comment_documented_class.lml
1927
+ - spec/lml/fixtures/rs3001/18_comment_block.lml
1928
+ - spec/lml/fixtures/rs3001/19_top_level_instance_definition.lml
1929
+ - spec/lml/fixtures/rs3001/20_instance_typed_definition.lml
1930
+ - spec/lml/fixtures/rs3001/21_instance_collection_studios.lml
1931
+ - spec/lml/fixtures/rs3001/22_instance_collection_tiles.lml
1932
+ - spec/lml/fixtures/rs3001/23_reference_cross_collection.lml
1933
+ - spec/lml/fixtures/rs3001/24_null_and_empty.lml
1934
+ - spec/lml/fixtures/rs3001/25_string_escapes.lml
1935
+ - spec/lml/fixtures/rs3001/26_quoted_keys.lml
1936
+ - spec/lml/fixtures/test.lutaml
1937
+ - spec/lml/fixtures/test_data/components.csv
1938
+ - spec/lml/fixtures/test_data/products.xml
1939
+ - spec/lml/fixtures/uml/address_class_profile_with_associations.yml
1940
+ - spec/lml/fixtures/uml/address_profile_with_associations.yml
1941
+ - spec/lml/fixtures/uml/association.yml
1942
+ - spec/lml/fixtures/uml/class.yml
1943
+ - spec/lml/fixtures/uml/data_type.yml
1944
+ - spec/lml/fixtures/uml/diagram.yml
1945
+ - spec/lml/fixtures/uml/document.yml
1946
+ - spec/lml/fixtures/uml/document_with_fidelity.yml
1947
+ - spec/lml/fixtures/uml/enum.yml
1948
+ - spec/lml/fixtures/uml/operation.yml
1949
+ - spec/lml/fixtures/uml/package.yml
1950
+ - spec/lml/fixtures/uml/top_element.yml
1951
+ - spec/lml/fixtures/uml/top_element_attribute.yml
1952
+ - spec/lml/fixtures/uml/trigger.yml
1953
+ - spec/lml/fixtures/uml/value.yml
1954
+ - spec/lml/fixtures/view/cycle_a.lutaml
1955
+ - spec/lml/fixtures/view/cycle_b.lutaml
1956
+ - spec/lml/fixtures/view/import_model.lutaml
1957
+ - spec/lml/fixtures/view/import_view.lutaml
1958
+ - spec/lml/fixtures/view/import_with_hide.lutaml
1959
+ - spec/lml/fixtures/view/import_with_show.lutaml
1960
+ - spec/lml/fixtures/view/models/bar.lutaml
1961
+ - spec/lml/fixtures/view/models/baz.lutaml
1962
+ - spec/lml/fixtures/view/models/foo.lutaml
1963
+ - spec/lml/integration/instance_import_export_spec.rb
1964
+ - spec/lml/lml_spec_setup.rb
1965
+ - spec/lml/lutaml/lml/association_label_resolver_spec.rb
1966
+ - spec/lml/lutaml/lml/data_processor_spec.rb
1967
+ - spec/lml/lutaml/lml/declarations_spec.rb
1968
+ - spec/lml/lutaml/lml/document_builder_registry_spec.rb
1969
+ - spec/lml/lutaml/lml/document_builder_spec.rb
1970
+ - spec/lml/lutaml/lml/element_visibility_spec.rb
1971
+ - spec/lml/lutaml/lml/entity_types_spec.rb
1972
+ - spec/lml/lutaml/lml/enum_spec.rb
1973
+ - spec/lml/lutaml/lml/executor/adapter_helpers_spec.rb
1974
+ - spec/lml/lutaml/lml/executor/condition_evaluator_spec.rb
1975
+ - spec/lml/lutaml/lml/executor/csv_adapter_spec.rb
1976
+ - spec/lml/lutaml/lml/executor/format_adapter_spec.rb
1977
+ - spec/lml/lutaml/lml/executor/xml_adapter_spec.rb
1978
+ - spec/lml/lutaml/lml/executor_spec.rb
1979
+ - spec/lml/lutaml/lml/format_adapter_spec.rb
1980
+ - spec/lml/lutaml/lml/format_autoload_spec.rb
1981
+ - spec/lml/lutaml/lml/grammar_spec.rb
1982
+ - spec/lml/lutaml/lml/has_attributes_spec.rb
1983
+ - spec/lml/lutaml/lml/import_resolver_spec.rb
1984
+ - spec/lml/lutaml/lml/instance_hydration_spec.rb
1985
+ - spec/lml/lutaml/lml/lsp/server_spec.rb
1986
+ - spec/lml/lutaml/lml/model_compiler_spec.rb
1987
+ - spec/lml/lutaml/lml/models/association_spec.rb
1988
+ - spec/lml/lutaml/lml/models/collection_spec.rb
1989
+ - spec/lml/lutaml/lml/models/data_type_spec.rb
1990
+ - spec/lml/lutaml/lml/models/diagram_spec.rb
1991
+ - spec/lml/lutaml/lml/models/document_spec.rb
1992
+ - spec/lml/lutaml/lml/models/enum_spec.rb
1993
+ - spec/lml/lutaml/lml/models/inheritance_spec.rb
1994
+ - spec/lml/lutaml/lml/models/instance_collection_spec.rb
1995
+ - spec/lml/lutaml/lml/models/instance_spec.rb
1996
+ - spec/lml/lutaml/lml/models/instances_export_spec.rb
1997
+ - spec/lml/lutaml/lml/models/instances_import_spec.rb
1998
+ - spec/lml/lutaml/lml/models/package_spec.rb
1999
+ - spec/lml/lutaml/lml/models/primitive_type_spec.rb
2000
+ - spec/lml/lutaml/lml/models/top_element_attribute_spec.rb
2001
+ - spec/lml/lutaml/lml/models/uml_class_spec.rb
2002
+ - spec/lml/lutaml/lml/models_version_spec.rb
2003
+ - spec/lml/lutaml/lml/operations_spec.rb
2004
+ - spec/lml/lutaml/lml/parser_spec.rb
2005
+ - spec/lml/lutaml/lml/pipeline_spec.rb
2006
+ - spec/lml/lutaml/lml/preprocessor_spec.rb
2007
+ - spec/lml/lutaml/lml/property_laws_spec.rb
2008
+ - spec/lml/lutaml/lml/real_world_spec.rb
2009
+ - spec/lml/lutaml/lml/reference_spec.rb
2010
+ - spec/lml/lutaml/lml/round_trip_spec.rb
2011
+ - spec/lml/lutaml/lml/rs3001_corpus_spec.rb
2012
+ - spec/lml/lutaml/lml/rs3001_syntax_spec.rb
2013
+ - spec/lml/lutaml/lml/serialization_mapping_spec.rb
2014
+ - spec/lml/lutaml/lml/source_spec.rb
2015
+ - spec/lml/lutaml/lml/transform_spec.rb
2016
+ - spec/lml/lutaml/lml/types/text_type_spec.rb
2017
+ - spec/lml/lutaml/lml/validator_spec.rb
2018
+ - spec/lml/lutaml/lml/view_resolver_spec.rb
2019
+ - spec/lml/lutaml/lml/view_spec.rb
2020
+ - spec/lml/lutaml/parsers/dsl_spec.rb
2021
+ - spec/lml/lutaml/parsers/yaml_spec.rb
2022
+ - spec/lml/lutaml/qualified_type_spec.rb
1745
2023
  - spec/lutaml/integration/edge_cases_spec.rb
1746
2024
  - spec/lutaml/integration/multi_format_spec.rb
1747
2025
  - spec/lutaml/integration/round_trip_spec.rb
@@ -1760,6 +2038,7 @@ files:
1760
2038
  - spec/lutaml/model/absent_value_contracts_spec.rb
1761
2039
  - spec/lutaml/model/adapter_resolver_configured_spec.rb
1762
2040
  - spec/lutaml/model/adapter_resolver_yeptris_switch_spec.rb
2041
+ - spec/lutaml/model/adapter_type_unset_restore_spec.rb
1763
2042
  - spec/lutaml/model/any_element_mapping_spec.rb
1764
2043
  - spec/lutaml/model/attribute_apply_value_map_spec.rb
1765
2044
  - spec/lutaml/model/attribute_collection_spec.rb
@@ -2000,6 +2279,7 @@ files:
2000
2279
  - spec/lutaml/turtle/transform_spec.rb
2001
2280
  - spec/lutaml/xml/adapter/base_adapter_regression_spec.rb
2002
2281
  - spec/lutaml/xml/adapter/empty_document_diagnostics_spec.rb
2282
+ - spec/lutaml/xml/adapter/moxml_lane_spec.rb
2003
2283
  - spec/lutaml/xml/adapter/nokogiri_adapter_spec.rb
2004
2284
  - spec/lutaml/xml/adapter/oga_adapter_spec.rb
2005
2285
  - spec/lutaml/xml/adapter/order_spec.rb
@@ -2009,6 +2289,7 @@ files:
2009
2289
  - spec/lutaml/xml/adapter/xml_namespace_spec.rb
2010
2290
  - spec/lutaml/xml/adapter_loader_spec.rb
2011
2291
  - spec/lutaml/xml/adapter_metadata_default_spec.rb
2292
+ - spec/lutaml/xml/adapter_moxml_engine_spec.rb
2012
2293
  - spec/lutaml/xml/adapter_parity_cross_namespace_spec.rb
2013
2294
  - spec/lutaml/xml/attribute_ambiguity_surface_spec.rb
2014
2295
  - spec/lutaml/xml/attribute_element_namespace_disjoint_spec.rb
@@ -2047,6 +2328,7 @@ files:
2047
2328
  - spec/lutaml/xml/leptris/native_emission_nested_sharing_spec.rb
2048
2329
  - spec/lutaml/xml/leptris/native_emission_ns_parity_spec.rb
2049
2330
  - spec/lutaml/xml/leptris/native_emission_ordered_spec.rb
2331
+ - spec/lutaml/xml/leptris/native_emission_plain_model_spec.rb
2050
2332
  - spec/lutaml/xml/leptris/native_emission_render_contract_spec.rb
2051
2333
  - spec/lutaml/xml/leptris/plan_hydrator_ns_snapshot_spec.rb
2052
2334
  - spec/lutaml/xml/leptris_string_encoding_spec.rb
@@ -2090,6 +2372,7 @@ files:
2090
2372
  - spec/lutaml/xml/parse_dom_retention_spec.rb
2091
2373
  - spec/lutaml/xml/pipeline_integration_spec.rb
2092
2374
  - spec/lutaml/xml/plain_model_accessors_spec.rb
2375
+ - spec/lutaml/xml/plain_model_mapping_resolution_spec.rb
2093
2376
  - spec/lutaml/xml/plan_fast_path_spec.rb
2094
2377
  - spec/lutaml/xml/plan_namespaced_serialize_spec.rb
2095
2378
  - spec/lutaml/xml/plan_ns_less_document_spec.rb
@@ -2134,6 +2417,7 @@ files:
2134
2417
  - spec/lutaml/xml/schema/xsd/unresolvable_schema_location_spec.rb
2135
2418
  - spec/lutaml/xml/schema/xsd/validation_error_spec.rb
2136
2419
  - spec/lutaml/xml/schema/xsd/validation_result_spec.rb
2420
+ - spec/lutaml/xml/schema/xsd/vc_versioning_spec.rb
2137
2421
  - spec/lutaml/xml/schema/xsd/xsd_11_constructs_spec.rb
2138
2422
  - spec/lutaml/xml/schema/xsd/xsd_spec.rb
2139
2423
  - spec/lutaml/xml/schema_primer_spec.rb