metaschema 0.2.1 → 0.2.2

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.
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Metaschema
4
+ class MarkupMultilineDatatype < Lutaml::Model::Serializable
5
+ attribute :h1, InlineMarkupType, collection: true
6
+ attribute :h2, InlineMarkupType, collection: true
7
+ attribute :h3, InlineMarkupType, collection: true
8
+ attribute :h4, InlineMarkupType, collection: true
9
+ attribute :h5, InlineMarkupType, collection: true
10
+ attribute :h6, InlineMarkupType, collection: true
11
+ attribute :ul, ListType, collection: true
12
+ attribute :ol, OrderedListType, collection: true
13
+ attribute :pre, PreformattedType, collection: true
14
+ attribute :hr, :string, collection: true
15
+ attribute :blockquote, BlockQuoteType, collection: true
16
+ attribute :p, InlineMarkupType, collection: true
17
+ attribute :table, TableType, collection: true
18
+ attribute :img, ImageType, collection: true
19
+
20
+ xml do
21
+ element "MarkupMultilineDatatype"
22
+ namespace ::Metaschema::Namespace
23
+ mixed_content
24
+
25
+ map_element "h1", to: :h1
26
+ map_element "h2", to: :h2
27
+ map_element "h3", to: :h3
28
+ map_element "h4", to: :h4
29
+ map_element "h5", to: :h5
30
+ map_element "h6", to: :h6
31
+ map_element "ul", to: :ul
32
+ map_element "ol", to: :ol
33
+ map_element "pre", to: :pre
34
+ map_element "hr", to: :hr
35
+ map_element "blockquote", to: :blockquote
36
+ map_element "p", to: :p
37
+ map_element "table", to: :table
38
+ map_element "img", to: :img
39
+ end
40
+ end
41
+ end