xsd 2.7.6 → 2.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/lib/xsd/shared/min_max_occurs.rb +6 -0
- data/lib/xsd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d62fa4aab11649bbbb36686518037701a98f8b0f6c7a553e4c6925eecf2f5eb
|
4
|
+
data.tar.gz: 9f75202ed5c7945d6667e81f3c5044fb2442c64294412a7a25a73cadd6993829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8749bf41fa3a2449e2cec62d8d657fff5e69458e59dbb8fa2a8a93945f6cda96d704d269a39fe03b521f95ba7b7b25ca4d14061fad38e4172dea4f07d59f1844
|
7
|
+
data.tar.gz: 57160d2965a6281b7faace74f9e556d1fd78d4adce27f8b1fafd241ad979860c68560a67cbd4adaecbb69851bf47e58297bb53da6e460a5466a9b29732227494
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
## [2.7.
|
1
|
+
## [2.7.7] - 2024-04-22
|
2
2
|
|
3
3
|
- Return <xs:any> and <xs:anyAttribute> from collect_elements/collect_attributes
|
4
4
|
- Make multiple_allowed? available on all definitions with max occurs
|
5
5
|
- Don't return duplicated attributes from complex restriction
|
6
6
|
- Fix base_complex_type on restriction without base
|
7
7
|
- Improve substitutable elements detection
|
8
|
+
- Added mutiple? shorthand
|
8
9
|
|
9
10
|
## [2.6.3] - 2024-04-13
|
10
11
|
|
@@ -45,6 +45,12 @@ module XSD
|
|
45
45
|
|
46
46
|
# Determine if element may occur multiple times
|
47
47
|
# @return Boolean
|
48
|
+
def multiple?
|
49
|
+
max_occurs == :unbounded || max_occurs > 1
|
50
|
+
end
|
51
|
+
|
52
|
+
# Determine if element may occur multiple times, accounting parents
|
53
|
+
# @return Boolean
|
48
54
|
def multiple_allowed?
|
49
55
|
computed_max_occurs == :unbounded || computed_max_occurs > 1
|
50
56
|
end
|
data/lib/xsd/version.rb
CHANGED