Skip to content

Commit 4d55dea

Browse files
committed
Remove "required" tags for now: they break the tests
1 parent 9b011dd commit 4d55dea

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/openxml/docx/elements/abstract_number.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ def initialize(id)
99
super()
1010
self.id = id
1111
end
12+
# TODO: child levels is limited to a max of 9
1213

1314
with_namespace :w do
14-
attribute :id, expects: :integer, displays_as: :abstractNumId, required: true
15+
attribute :id, expects: :integer, displays_as: :abstractNumId#, required: true
1516
end
1617

17-
# value_property :nsid
18+
# value_property :nsid - this is a UI property and likely not worth implementing
1819
value_property :multi_level_type
19-
# value_property :tmpl
20+
# value_property :tmpl - this is a UI property and likely not worth implementing
2021
# value_property :name
2122
# value_property :style_link
2223
# value_property :num_style_link

lib/openxml/docx/elements/number.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ def initialize(id)
99
super()
1010
self.id = id
1111
end
12+
# TODO: child lvlOverride is limited to 9
1213

1314
with_namespace :w do
14-
attribute :id, expects: :integer, displays_as: :numId, required: true
15+
attribute :id, expects: :integer, displays_as: :numId#, required: true
1516
end
1617

1718
value_property :abstract_number_id

0 commit comments

Comments
 (0)