Skip to content

Commit

Permalink
Fix <xs:all> to use MinMaxOccurs
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzobrain committed Apr 22, 2024
1 parent 766e9e5 commit 13268c4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/xsd/objects/all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ module XSD
# extension (both simpleContent and complexContent)
# https://www.w3schools.com/xml/el_all.asp
class All < BaseObject
include MinMaxOccurs
include ElementContainer

# Optional. Specifies the minimum number of times the element can occur. The value can be 0 or 1. Default value is 1
# @!attribute min_occurs
# @return Integer
property :minOccurs, :integer, default: 1

# Optional. Specifies the maximum number of times the element can occur. The value must be 1.
# @!attribute max_occurs
# @return Integer
property :maxOccurs, :integer, default: 1
end
end

0 comments on commit 13268c4

Please sign in to comment.