1
+ {
2
+ "$ref" : " #/definitions/Table" ,
3
+ "definitions" : {
4
+ "Table" : {
5
+ "type" : " object" ,
6
+ "properties" : {
7
+ "nodeType" : {
8
+ "type" : " string" ,
9
+ "enum" : [
10
+ " table"
11
+ ]
12
+ },
13
+ "data" : {
14
+ "type" : " object" ,
15
+ "properties" : {}
16
+ },
17
+ "content" : {
18
+ "type" : " array" ,
19
+ "items" : {
20
+ "$ref" : " #/definitions/TableRow"
21
+ }
22
+ }
23
+ },
24
+ "additionalProperties" : false ,
25
+ "required" : [
26
+ " content" ,
27
+ " data" ,
28
+ " nodeType"
29
+ ]
30
+ },
31
+ "TableRow" : {
32
+ "type" : " object" ,
33
+ "properties" : {
34
+ "nodeType" : {
35
+ "type" : " string" ,
36
+ "enum" : [
37
+ " table-row"
38
+ ]
39
+ },
40
+ "data" : {
41
+ "type" : " object" ,
42
+ "properties" : {}
43
+ },
44
+ "content" : {
45
+ "type" : " array" ,
46
+ "items" : {
47
+ "$ref" : " #/definitions/TableCell"
48
+ }
49
+ }
50
+ },
51
+ "additionalProperties" : false ,
52
+ "required" : [
53
+ " content" ,
54
+ " data" ,
55
+ " nodeType"
56
+ ]
57
+ },
58
+ "TableCell" : {
59
+ "type" : " object" ,
60
+ "properties" : {
61
+ "nodeType" : {
62
+ "type" : " string" ,
63
+ "enum" : [
64
+ " table-cell"
65
+ ]
66
+ },
67
+ "data" : {
68
+ "type" : " object" ,
69
+ "properties" : {
70
+ "colspan" : {
71
+ "type" : " number"
72
+ }
73
+ },
74
+ "additionalProperties" : false
75
+ },
76
+ "content" : {
77
+ "type" : " array" ,
78
+ "items" : {
79
+ "$ref" : " #/definitions/Paragraph"
80
+ }
81
+ }
82
+ },
83
+ "additionalProperties" : false ,
84
+ "required" : [
85
+ " content" ,
86
+ " data" ,
87
+ " nodeType"
88
+ ]
89
+ },
90
+ "Paragraph" : {
91
+ "type" : " object" ,
92
+ "properties" : {
93
+ "nodeType" : {
94
+ "type" : " string" ,
95
+ "enum" : [
96
+ " paragraph"
97
+ ]
98
+ },
99
+ "data" : {
100
+ "type" : " object" ,
101
+ "properties" : {}
102
+ },
103
+ "content" : {
104
+ "type" : " array" ,
105
+ "items" : {
106
+ "anyOf" : [
107
+ {
108
+ "$ref" : " #/definitions/Inline"
109
+ },
110
+ {
111
+ "$ref" : " #/definitions/Text"
112
+ }
113
+ ]
114
+ }
115
+ }
116
+ },
117
+ "additionalProperties" : false ,
118
+ "required" : [
119
+ " content" ,
120
+ " data" ,
121
+ " nodeType"
122
+ ]
123
+ },
124
+ "Inline" : {
125
+ "type" : " object" ,
126
+ "properties" : {
127
+ "nodeType" : {
128
+ "$ref" : " #/definitions/INLINES"
129
+ },
130
+ "content" : {
131
+ "type" : " array" ,
132
+ "items" : {
133
+ "anyOf" : [
134
+ {
135
+ "$ref" : " #/definitions/Inline"
136
+ },
137
+ {
138
+ "$ref" : " #/definitions/Text"
139
+ }
140
+ ]
141
+ }
142
+ },
143
+ "data" : {
144
+ "$ref" : " #/definitions/Record<string,any>"
145
+ }
146
+ },
147
+ "additionalProperties" : false ,
148
+ "required" : [
149
+ " content" ,
150
+ " data" ,
151
+ " nodeType"
152
+ ]
153
+ },
154
+ "INLINES" : {
155
+ "description" : " Map of all Contentful inline types. Inline contain inline or text nodes." ,
156
+ "enum" : [
157
+ " asset-hyperlink" ,
158
+ " embedded-entry-inline" ,
159
+ " entry-hyperlink" ,
160
+ " hyperlink"
161
+ ],
162
+ "type" : " string"
163
+ },
164
+ "Text" : {
165
+ "type" : " object" ,
166
+ "properties" : {
167
+ "nodeType" : {
168
+ "type" : " string" ,
169
+ "enum" : [
170
+ " text"
171
+ ]
172
+ },
173
+ "value" : {
174
+ "type" : " string"
175
+ },
176
+ "marks" : {
177
+ "type" : " array" ,
178
+ "items" : {
179
+ "$ref" : " #/definitions/Mark"
180
+ }
181
+ },
182
+ "data" : {
183
+ "$ref" : " #/definitions/Record<string,any>"
184
+ }
185
+ },
186
+ "additionalProperties" : false ,
187
+ "required" : [
188
+ " data" ,
189
+ " marks" ,
190
+ " nodeType" ,
191
+ " value"
192
+ ]
193
+ },
194
+ "Mark" : {
195
+ "type" : " object" ,
196
+ "properties" : {
197
+ "type" : {
198
+ "type" : " string"
199
+ }
200
+ },
201
+ "additionalProperties" : false ,
202
+ "required" : [
203
+ " type"
204
+ ]
205
+ },
206
+ "Record<string,any>" : {
207
+ "additionalProperties" : true ,
208
+ "type" : " object"
209
+ }
210
+ },
211
+ "$schema" : " http://json-schema.org/draft-07/schema#"
212
+ }
0 commit comments