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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b4c137e1f669303a163bde341097dae39b9171b3f9c65b2a8dba97fff0ac6e5
|
|
4
|
+
data.tar.gz: a9c13e332f7228b0d45c1a2b24ce9cbe032c7d3b9a06b8585b54c30bd78fcfdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51cad246d238f97af6becc7e9f90409d21152e60ff136658832e3440656a13f02b18693f8683605e0831738a2fb707490d137a2a47769121a2139aa845c927f6
|
|
7
|
+
data.tar.gz: a7be0c13e87ac6d37a61044bdea091f7d49a21ad2bb75cd206424456c9d1a77a13ba895b9f2d5d7b6ae6c45fe64b71ae493cd4dab444486641ebbc7cc6294a08
|
data/lib/lutaml/model/version.rb
CHANGED
|
@@ -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.
|
|
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
|