lutaml-model 0.8.120 → 0.8.121

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: 5a2f85724acebb5e00bf61091dfd3da178b087700420af1f9c8168ea1eb7e579
4
- data.tar.gz: 0220370237df57218c474fdc97f72dda7ca0e7183eff0d3aecea6397e7d56232
3
+ metadata.gz: 6b4c137e1f669303a163bde341097dae39b9171b3f9c65b2a8dba97fff0ac6e5
4
+ data.tar.gz: a9c13e332f7228b0d45c1a2b24ce9cbe032c7d3b9a06b8585b54c30bd78fcfdc
5
5
  SHA512:
6
- metadata.gz: 6c2dfe1999803b5a232318a871fe71c07ccf7bb8050aa31691918e405b67d1b9bfdd41661f6ec6e7a9e3764c0d6124ed3e1d8d84dc0627dab28698d3f6ce615f
7
- data.tar.gz: dc85cfcf2a10c301e80b533a679877f43df5e018428a5b1e19c8e2f50f545064088a955956bbbb6bd19462da5db995e16052ea6b4268fda05b8805a1f3ccb0d6
6
+ metadata.gz: 51cad246d238f97af6becc7e9f90409d21152e60ff136658832e3440656a13f02b18693f8683605e0831738a2fb707490d137a2a47769121a2139aa845c927f6
7
+ data.tar.gz: a7be0c13e87ac6d37a61044bdea091f7d49a21ad2bb75cd206424456c9d1a77a13ba895b9f2d5d7b6ae6c45fe64b71ae493cd4dab444486641ebbc7cc6294a08
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lutaml
4
4
  module Model
5
- VERSION = "0.8.120"
5
+ VERSION = "0.8.121"
6
6
  end
7
7
  end
@@ -20,6 +20,7 @@ module Lutaml
20
20
 
21
21
  map_attribute :id, to: :id
22
22
  map_attribute :name, to: :name
23
+ map_attribute :refer, to: :refer
23
24
  map_element :field, to: :field
24
25
  map_element :selector, to: :selector
25
26
  map_element :annotation, to: :annotation
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "spec_helper"
4
+
5
+ RSpec.describe Lutaml::Xml::Schema::Xsd::Keyref do
6
+ it "maps the refer attribute from the parsed XSD" do
7
+ xsd = <<~XSD
8
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
9
+ <xs:element name="catalog">
10
+ <xs:keyref name="refKey" refer="itemKey"/>
11
+ </xs:element>
12
+ </xs:schema>
13
+ XSD
14
+
15
+ schema = Lutaml::Xml::Schema::Xsd.parse(xsd)
16
+ keyref = Array(schema.element.first.keyref).first
17
+
18
+ expect(keyref).not_to be_nil
19
+ expect(keyref.refer).to eq("itemKey")
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lutaml-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.120
4
+ version: 0.8.121
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -2022,6 +2022,7 @@ files:
2022
2022
  - spec/lutaml/xml/schema/xsd/errors/suggestion_spec.rb
2023
2023
  - spec/lutaml/xml/schema/xsd/file_validation_result_spec.rb
2024
2024
  - spec/lutaml/xml/schema/xsd/glob_spec.rb
2025
+ - spec/lutaml/xml/schema/xsd/keyref_refer_spec.rb
2025
2026
  - spec/lutaml/xml/schema/xsd/liquid_methods/attribute_and_group_spec.rb
2026
2027
  - spec/lutaml/xml/schema/xsd/liquid_methods/complex_type_spec.rb
2027
2028
  - spec/lutaml/xml/schema/xsd/liquid_methods/containers_spec.rb