lutaml-model 0.8.157 → 0.8.159

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/opal.yml +5 -0
  3. data/docs/_guides/opal.adoc +11 -0
  4. data/docs/_pages/serialization_adapters.adoc +18 -2
  5. data/lib/lutaml/key_value/transformation/value_serializer.rb +21 -0
  6. data/lib/lutaml/key_value/transformation.rb +57 -6
  7. data/lib/lutaml/model/adapter_resolver.rb +29 -0
  8. data/lib/lutaml/model/cached_type_resolver/concurrent_map_cache.rb +3 -1
  9. data/lib/lutaml/model/cached_type_resolver/mutex_hash_cache.rb +3 -1
  10. data/lib/lutaml/model/cached_type_resolver.rb +13 -22
  11. data/lib/lutaml/model/collection.rb +63 -6
  12. data/lib/lutaml/model/collection_handler.rb +9 -13
  13. data/lib/lutaml/model/mapping/mapping_rule.rb +28 -4
  14. data/lib/lutaml/model/serialize/builder.rb +1 -1
  15. data/lib/lutaml/model/serialize/enum_handling.rb +7 -3
  16. data/lib/lutaml/model/serialize/format_conversion.rb +26 -1
  17. data/lib/lutaml/model/serialize/value_mapping.rb +6 -0
  18. data/lib/lutaml/model/serialize.rb +6 -1
  19. data/lib/lutaml/model/services/rule_value_extractor.rb +39 -35
  20. data/lib/lutaml/model/utils.rb +16 -4
  21. data/lib/lutaml/model/version.rb +1 -1
  22. data/lib/lutaml/xml/adapter/oga_adapter.rb +4 -0
  23. data/lib/lutaml/xml/adapter/rexml_adapter.rb +4 -0
  24. data/lib/lutaml/xml/adapter_element.rb +16 -21
  25. data/lib/lutaml/xml/declaration_planner.rb +63 -3
  26. data/lib/lutaml/xml/schema/xsd/schema_path.rb +8 -3
  27. data/spec/lutaml/model/collection_scalar_maps_spec.rb +58 -0
  28. data/spec/lutaml/model/key_value_accepted_values_spec.rb +99 -0
  29. data/spec/lutaml/xml/schema/xsd/glob_spec.rb +14 -18
  30. data/spec/lutaml/xml/schema/xsd/unresolvable_schema_location_spec.rb +58 -0
  31. metadata +5 -2
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.157
4
+ version: 0.8.159
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-02 00:00:00.000000000 Z
11
+ date: 2026-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -1753,6 +1753,7 @@ files:
1753
1753
  - spec/lutaml/model/collection_mutation_spec.rb
1754
1754
  - spec/lutaml/model/collection_reader_liveness_spec.rb
1755
1755
  - spec/lutaml/model/collection_register_spec.rb
1756
+ - spec/lutaml/model/collection_scalar_maps_spec.rb
1756
1757
  - spec/lutaml/model/collection_single_value_coercion_spec.rb
1757
1758
  - spec/lutaml/model/collection_spec.rb
1758
1759
  - spec/lutaml/model/collection_state_nesting_spec.rb
@@ -1800,6 +1801,7 @@ files:
1800
1801
  - spec/lutaml/model/json_state_nesting_spec.rb
1801
1802
  - spec/lutaml/model/jsonl/standard_adapter_spec.rb
1802
1803
  - spec/lutaml/model/jsonl_spec.rb
1804
+ - spec/lutaml/model/key_value_accepted_values_spec.rb
1803
1805
  - spec/lutaml/model/key_value_data_model/key_value_element_spec.rb
1804
1806
  - spec/lutaml/model/key_value_mapping_spec.rb
1805
1807
  - spec/lutaml/model/late_attribute_declaration_spec.rb
@@ -2083,6 +2085,7 @@ files:
2083
2085
  - spec/lutaml/xml/schema/xsd/schema_mapping_spec.rb
2084
2086
  - spec/lutaml/xml/schema/xsd/schema_validator_spec.rb
2085
2087
  - spec/lutaml/xml/schema/xsd/spec_helper.rb
2088
+ - spec/lutaml/xml/schema/xsd/unresolvable_schema_location_spec.rb
2086
2089
  - spec/lutaml/xml/schema/xsd/validation_error_spec.rb
2087
2090
  - spec/lutaml/xml/schema/xsd/validation_result_spec.rb
2088
2091
  - spec/lutaml/xml/schema/xsd/xsd_spec.rb