@podlite/schema 0.0.3 → 0.0.7

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.
@@ -22,6 +22,214 @@
22
22
  "type"
23
23
  ]
24
24
  },
25
+ "Toc": {
26
+ "type": "object",
27
+ "properties": {
28
+ "type": {
29
+ "type": "string",
30
+ "enum": [
31
+ "toc"
32
+ ]
33
+ },
34
+ "title": {
35
+ "type": "string"
36
+ },
37
+ "content": {
38
+ "$ref": "#/definitions/TocList"
39
+ }
40
+ },
41
+ "required": [
42
+ "content",
43
+ "type"
44
+ ]
45
+ },
46
+ "TocList": {
47
+ "type": "object",
48
+ "properties": {
49
+ "type": {
50
+ "type": "string",
51
+ "enum": [
52
+ "toc-list"
53
+ ]
54
+ },
55
+ "level": {
56
+ "type": "number"
57
+ },
58
+ "content": {
59
+ "type": "array",
60
+ "items": {
61
+ "anyOf": [
62
+ {
63
+ "$ref": "#/definitions/TocList"
64
+ },
65
+ {
66
+ "$ref": "#/definitions/TocItem"
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ },
72
+ "required": [
73
+ "content",
74
+ "level",
75
+ "type"
76
+ ]
77
+ },
78
+ "TocItem": {
79
+ "type": "object",
80
+ "properties": {
81
+ "type": {
82
+ "type": "string",
83
+ "enum": [
84
+ "toc-item"
85
+ ]
86
+ },
87
+ "node": {
88
+ "$ref": "#/definitions/PodNode"
89
+ },
90
+ "content": {
91
+ "type": "array",
92
+ "items": {
93
+ "$ref": "#/definitions/PodNode"
94
+ }
95
+ }
96
+ },
97
+ "required": [
98
+ "content",
99
+ "node",
100
+ "type"
101
+ ]
102
+ },
103
+ "PodNode": {
104
+ "anyOf": [
105
+ {
106
+ "$ref": "#/definitions/Image"
107
+ },
108
+ {
109
+ "$ref": "#/definitions/Toc"
110
+ },
111
+ {
112
+ "$ref": "#/definitions/BlockImage"
113
+ },
114
+ {
115
+ "$ref": "#/definitions/BlockCaption"
116
+ },
117
+ {
118
+ "$ref": "#/definitions/RootBlock"
119
+ },
120
+ {
121
+ "$ref": "#/definitions/FormattingCodeB"
122
+ },
123
+ {
124
+ "$ref": "#/definitions/FormattingCodeC"
125
+ },
126
+ {
127
+ "$ref": "#/definitions/FormattingCodeE"
128
+ },
129
+ {
130
+ "$ref": "#/definitions/FormattingCodeN"
131
+ },
132
+ {
133
+ "$ref": "#/definitions/FormattingCodeX"
134
+ },
135
+ {
136
+ "$ref": "#/definitions/FormattingCodeZ"
137
+ },
138
+ {
139
+ "$ref": "#/definitions/FormattingCodeV"
140
+ },
141
+ {
142
+ "$ref": "#/definitions/FormattingCodeS"
143
+ },
144
+ {
145
+ "$ref": "#/definitions/FormattingCodeA"
146
+ },
147
+ {
148
+ "$ref": "#/definitions/FormattingCodeD"
149
+ },
150
+ {
151
+ "$ref": "#/definitions/FormattingCodeL"
152
+ },
153
+ {
154
+ "$ref": "#/definitions/FormattingCodeI"
155
+ },
156
+ {
157
+ "$ref": "#/definitions/FormattingCodeAny"
158
+ },
159
+ {
160
+ "$ref": "#/definitions/Ambient"
161
+ },
162
+ {
163
+ "$ref": "#/definitions/Verbatim"
164
+ },
165
+ {
166
+ "$ref": "#/definitions/Text"
167
+ },
168
+ {
169
+ "$ref": "#/definitions/Para"
170
+ },
171
+ {
172
+ "$ref": "#/definitions/Code"
173
+ },
174
+ {
175
+ "$ref": "#/definitions/BlankLine"
176
+ },
177
+ {
178
+ "$ref": "#/definitions/List"
179
+ },
180
+ {
181
+ "$ref": "#/definitions/BlockConfig"
182
+ },
183
+ {
184
+ "$ref": "#/definitions/Alias"
185
+ },
186
+ {
187
+ "$ref": "#/definitions/Separator"
188
+ },
189
+ {
190
+ "$ref": "#/definitions/BlockPod"
191
+ },
192
+ {
193
+ "$ref": "#/definitions/BlockData"
194
+ },
195
+ {
196
+ "$ref": "#/definitions/BlockComment"
197
+ },
198
+ {
199
+ "$ref": "#/definitions/BlockDefn"
200
+ },
201
+ {
202
+ "$ref": "#/definitions/BlockItem"
203
+ },
204
+ {
205
+ "$ref": "#/definitions/BlockOutput"
206
+ },
207
+ {
208
+ "$ref": "#/definitions/BlockInput"
209
+ },
210
+ {
211
+ "$ref": "#/definitions/BlockPara"
212
+ },
213
+ {
214
+ "$ref": "#/definitions/BlockCode"
215
+ },
216
+ {
217
+ "$ref": "#/definitions/BlockNested"
218
+ },
219
+ {
220
+ "$ref": "#/definitions/BlockHead"
221
+ },
222
+ {
223
+ "$ref": "#/definitions/BlockTable"
224
+ },
225
+ {
226
+ "$ref": "#/definitions/BlockNamed"
227
+ },
228
+ {
229
+ "type": "string"
230
+ }
231
+ ]
232
+ },
25
233
  "BlockImage": {
26
234
  "type": "object",
27
235
  "properties": {
@@ -31,15 +239,24 @@
31
239
  "image"
32
240
  ]
33
241
  },
242
+ "caption": {
243
+ "type": "string"
244
+ },
245
+ "link": {
246
+ "type": "string"
247
+ },
34
248
  "content": {
35
249
  "type": "array",
36
250
  "items": [
37
251
  {
38
252
  "$ref": "#/definitions/Image"
253
+ },
254
+ {
255
+ "$ref": "#/definitions/BlockCaption"
39
256
  }
40
257
  ],
41
- "minItems": 1,
42
- "maxItems": 1
258
+ "minItems": 2,
259
+ "maxItems": 2
43
260
  },
44
261
  "type": {
45
262
  "type": "string",
@@ -65,6 +282,9 @@
65
282
  }
66
283
  ]
67
284
  }
285
+ },
286
+ "id": {
287
+ "type": "string"
68
288
  }
69
289
  },
70
290
  "required": [
@@ -75,6 +295,34 @@
75
295
  "type"
76
296
  ]
77
297
  },
298
+ "BlockCaption": {
299
+ "type": "object",
300
+ "properties": {
301
+ "name": {
302
+ "type": "string",
303
+ "enum": [
304
+ "caption"
305
+ ]
306
+ },
307
+ "content": {
308
+ "type": "array",
309
+ "items": {
310
+ "$ref": "#/definitions/PodNode"
311
+ }
312
+ },
313
+ "type": {
314
+ "type": "string",
315
+ "enum": [
316
+ "block"
317
+ ]
318
+ }
319
+ },
320
+ "required": [
321
+ "content",
322
+ "name",
323
+ "type"
324
+ ]
325
+ },
78
326
  "Location": {
79
327
  "type": "object",
80
328
  "properties": {
@@ -228,6 +476,9 @@
228
476
  }
229
477
  ]
230
478
  }
479
+ },
480
+ "id": {
481
+ "type": "string"
231
482
  }
232
483
  },
233
484
  "required": [
@@ -243,108 +494,20 @@
243
494
  "$ref": "#/definitions/PodNode"
244
495
  }
245
496
  },
246
- "PodNode": {
247
- "anyOf": [
248
- {
249
- "$ref": "#/definitions/Image"
250
- },
251
- {
252
- "$ref": "#/definitions/BlockImage"
253
- },
254
- {
255
- "$ref": "#/definitions/RootBlock"
256
- },
257
- {
258
- "$ref": "#/definitions/FormattingCodeB"
259
- },
260
- {
261
- "$ref": "#/definitions/FormattingCodeC"
262
- },
263
- {
264
- "$ref": "#/definitions/FormattingCodeE"
265
- },
266
- {
267
- "$ref": "#/definitions/FormattingCodeN"
268
- },
269
- {
270
- "$ref": "#/definitions/FormattingCodeX"
497
+ "FormattingCodeB": {
498
+ "type": "object",
499
+ "properties": {
500
+ "type": {
501
+ "type": "string",
502
+ "enum": [
503
+ "fcode"
504
+ ]
271
505
  },
272
- {
273
- "$ref": "#/definitions/FormattingCodeZ"
274
- },
275
- {
276
- "$ref": "#/definitions/FormattingCodeV"
277
- },
278
- {
279
- "$ref": "#/definitions/FormattingCodeS"
280
- },
281
- {
282
- "$ref": "#/definitions/FormattingCodeA"
283
- },
284
- {
285
- "$ref": "#/definitions/FormattingCodeD"
286
- },
287
- {
288
- "$ref": "#/definitions/FormattingCodeL"
289
- },
290
- {
291
- "$ref": "#/definitions/FormattingCodeAny"
292
- },
293
- {
294
- "$ref": "#/definitions/Verbatim"
295
- },
296
- {
297
- "$ref": "#/definitions/Text"
298
- },
299
- {
300
- "$ref": "#/definitions/Para"
301
- },
302
- {
303
- "$ref": "#/definitions/Code"
304
- },
305
- {
306
- "$ref": "#/definitions/BlankLine"
307
- },
308
- {
309
- "$ref": "#/definitions/List"
310
- },
311
- {
312
- "$ref": "#/definitions/BlockConfig"
313
- },
314
- {
315
- "$ref": "#/definitions/Alias"
316
- },
317
- {
318
- "$ref": "#/definitions/BlockItem"
319
- },
320
- {
321
- "$ref": "#/definitions/BlockPara"
322
- },
323
- {
324
- "$ref": "#/definitions/BlockTable"
325
- },
326
- {
327
- "$ref": "#/definitions/BlockAny"
328
- },
329
- {
330
- "type": "string"
331
- }
332
- ]
333
- },
334
- "FormattingCodeB": {
335
- "type": "object",
336
- "properties": {
337
- "type": {
338
- "type": "string",
339
- "enum": [
340
- "fcode"
341
- ]
342
- },
343
- "name": {
344
- "type": "string",
345
- "enum": [
346
- "B"
347
- ]
506
+ "name": {
507
+ "type": "string",
508
+ "enum": [
509
+ "B"
510
+ ]
348
511
  },
349
512
  "content": {
350
513
  "type": "array",
@@ -410,6 +573,9 @@
410
573
  {
411
574
  "$ref": "#/definitions/FormattingCodeL"
412
575
  },
576
+ {
577
+ "$ref": "#/definitions/FormattingCodeI"
578
+ },
413
579
  {
414
580
  "$ref": "#/definitions/FormattingCodeAny"
415
581
  },
@@ -520,6 +686,9 @@
520
686
  {
521
687
  "$ref": "#/definitions/FormattingCodeL"
522
688
  },
689
+ {
690
+ "$ref": "#/definitions/FormattingCodeI"
691
+ },
523
692
  {
524
693
  "$ref": "#/definitions/FormattingCodeAny"
525
694
  },
@@ -600,6 +769,9 @@
600
769
  {
601
770
  "$ref": "#/definitions/FormattingCodeL"
602
771
  },
772
+ {
773
+ "$ref": "#/definitions/FormattingCodeI"
774
+ },
603
775
  {
604
776
  "$ref": "#/definitions/FormattingCodeAny"
605
777
  },
@@ -792,6 +964,45 @@
792
964
  "L"
793
965
  ]
794
966
  },
967
+ "meta": {
968
+ "type": [
969
+ "null",
970
+ "string"
971
+ ]
972
+ },
973
+ "content": {
974
+ "anyOf": [
975
+ {
976
+ "$ref": "#/definitions/Text"
977
+ },
978
+ {
979
+ "type": "string"
980
+ }
981
+ ]
982
+ }
983
+ },
984
+ "required": [
985
+ "content",
986
+ "meta",
987
+ "name",
988
+ "type"
989
+ ]
990
+ },
991
+ "FormattingCodeI": {
992
+ "type": "object",
993
+ "properties": {
994
+ "type": {
995
+ "type": "string",
996
+ "enum": [
997
+ "fcode"
998
+ ]
999
+ },
1000
+ "name": {
1001
+ "type": "string",
1002
+ "enum": [
1003
+ "I"
1004
+ ]
1005
+ },
795
1006
  "meta": {
796
1007
  "type": "string"
797
1008
  },
@@ -862,6 +1073,9 @@
862
1073
  {
863
1074
  "$ref": "#/definitions/FormattingCodeL"
864
1075
  },
1076
+ {
1077
+ "$ref": "#/definitions/FormattingCodeI"
1078
+ },
865
1079
  {
866
1080
  "$ref": "#/definitions/FormattingCodeAny"
867
1081
  },
@@ -877,6 +1091,28 @@
877
1091
  "type"
878
1092
  ]
879
1093
  },
1094
+ "Ambient": {
1095
+ "type": "object",
1096
+ "properties": {
1097
+ "type": {
1098
+ "type": "string",
1099
+ "enum": [
1100
+ "ambient"
1101
+ ]
1102
+ },
1103
+ "text": {
1104
+ "type": "string"
1105
+ },
1106
+ "location": {
1107
+ "$ref": "#/definitions/Location"
1108
+ }
1109
+ },
1110
+ "required": [
1111
+ "location",
1112
+ "text",
1113
+ "type"
1114
+ ]
1115
+ },
880
1116
  "Verbatim": {
881
1117
  "type": "object",
882
1118
  "properties": {
@@ -920,9 +1156,15 @@
920
1156
  {
921
1157
  "$ref": "#/definitions/Image"
922
1158
  },
1159
+ {
1160
+ "$ref": "#/definitions/Toc"
1161
+ },
923
1162
  {
924
1163
  "$ref": "#/definitions/BlockImage"
925
1164
  },
1165
+ {
1166
+ "$ref": "#/definitions/BlockCaption"
1167
+ },
926
1168
  {
927
1169
  "$ref": "#/definitions/RootBlock"
928
1170
  },
@@ -959,9 +1201,15 @@
959
1201
  {
960
1202
  "$ref": "#/definitions/FormattingCodeL"
961
1203
  },
1204
+ {
1205
+ "$ref": "#/definitions/FormattingCodeI"
1206
+ },
962
1207
  {
963
1208
  "$ref": "#/definitions/FormattingCodeAny"
964
1209
  },
1210
+ {
1211
+ "$ref": "#/definitions/Ambient"
1212
+ },
965
1213
  {
966
1214
  "$ref": "#/definitions/Verbatim"
967
1215
  },
@@ -986,192 +1234,722 @@
986
1234
  {
987
1235
  "$ref": "#/definitions/Alias"
988
1236
  },
1237
+ {
1238
+ "$ref": "#/definitions/Separator"
1239
+ },
1240
+ {
1241
+ "$ref": "#/definitions/BlockPod"
1242
+ },
1243
+ {
1244
+ "$ref": "#/definitions/BlockData"
1245
+ },
1246
+ {
1247
+ "$ref": "#/definitions/BlockComment"
1248
+ },
1249
+ {
1250
+ "$ref": "#/definitions/BlockDefn"
1251
+ },
989
1252
  {
990
1253
  "$ref": "#/definitions/BlockItem"
991
1254
  },
1255
+ {
1256
+ "$ref": "#/definitions/BlockOutput"
1257
+ },
1258
+ {
1259
+ "$ref": "#/definitions/BlockInput"
1260
+ },
992
1261
  {
993
1262
  "$ref": "#/definitions/BlockPara"
994
1263
  },
1264
+ {
1265
+ "$ref": "#/definitions/BlockCode"
1266
+ },
1267
+ {
1268
+ "$ref": "#/definitions/BlockNested"
1269
+ },
1270
+ {
1271
+ "$ref": "#/definitions/BlockHead"
1272
+ },
995
1273
  {
996
1274
  "$ref": "#/definitions/BlockTable"
997
1275
  },
998
1276
  {
999
- "$ref": "#/definitions/BlockAny"
1277
+ "$ref": "#/definitions/BlockNamed"
1278
+ },
1279
+ {
1280
+ "type": "string"
1281
+ }
1282
+ ]
1283
+ }
1284
+ }
1285
+ },
1286
+ "required": [
1287
+ "content",
1288
+ "location",
1289
+ "margin",
1290
+ "text",
1291
+ "type"
1292
+ ]
1293
+ },
1294
+ "Code": {
1295
+ "type": "object",
1296
+ "properties": {
1297
+ "type": {
1298
+ "type": "string",
1299
+ "enum": [
1300
+ "code"
1301
+ ]
1302
+ },
1303
+ "text": {
1304
+ "type": "string"
1305
+ },
1306
+ "margin": {
1307
+ "type": "string"
1308
+ },
1309
+ "location": {
1310
+ "$ref": "#/definitions/Location"
1311
+ },
1312
+ "content": {
1313
+ "type": "array",
1314
+ "items": {
1315
+ "anyOf": [
1316
+ {
1317
+ "$ref": "#/definitions/Verbatim"
1318
+ },
1319
+ {
1320
+ "type": "string"
1321
+ }
1322
+ ]
1323
+ }
1324
+ }
1325
+ },
1326
+ "required": [
1327
+ "content",
1328
+ "location",
1329
+ "margin",
1330
+ "text",
1331
+ "type"
1332
+ ]
1333
+ },
1334
+ "BlankLine": {
1335
+ "type": "object",
1336
+ "properties": {
1337
+ "type": {
1338
+ "type": "string",
1339
+ "enum": [
1340
+ "blankline"
1341
+ ]
1342
+ }
1343
+ },
1344
+ "required": [
1345
+ "type"
1346
+ ]
1347
+ },
1348
+ "List": {
1349
+ "type": "object",
1350
+ "properties": {
1351
+ "type": {
1352
+ "type": "string",
1353
+ "enum": [
1354
+ "list"
1355
+ ]
1356
+ },
1357
+ "level": {
1358
+ "type": [
1359
+ "string",
1360
+ "number"
1361
+ ]
1362
+ },
1363
+ "content": {
1364
+ "type": "array",
1365
+ "items": {
1366
+ "anyOf": [
1367
+ {
1368
+ "$ref": "#/definitions/BlankLine"
1369
+ },
1370
+ {
1371
+ "$ref": "#/definitions/List"
1372
+ },
1373
+ {
1374
+ "$ref": "#/definitions/BlockItem"
1375
+ }
1376
+ ]
1377
+ }
1378
+ },
1379
+ "list": {
1380
+ "type": "string",
1381
+ "enum": [
1382
+ "itemized"
1383
+ ]
1384
+ }
1385
+ },
1386
+ "required": [
1387
+ "content",
1388
+ "level",
1389
+ "list",
1390
+ "type"
1391
+ ]
1392
+ },
1393
+ "BlockItem": {
1394
+ "type": "object",
1395
+ "properties": {
1396
+ "name": {
1397
+ "type": "string",
1398
+ "enum": [
1399
+ "item"
1400
+ ]
1401
+ },
1402
+ "content": {
1403
+ "type": "array",
1404
+ "items": {
1405
+ "$ref": "#/definitions/PodNode"
1406
+ }
1407
+ },
1408
+ "level": {
1409
+ "type": [
1410
+ "string",
1411
+ "number"
1412
+ ]
1413
+ },
1414
+ "type": {
1415
+ "type": "string",
1416
+ "enum": [
1417
+ "block"
1418
+ ]
1419
+ },
1420
+ "location": {
1421
+ "$ref": "#/definitions/Location"
1422
+ },
1423
+ "margin": {
1424
+ "type": "string"
1425
+ },
1426
+ "config": {
1427
+ "type": "array",
1428
+ "items": {
1429
+ "anyOf": [
1430
+ {
1431
+ "$ref": "#/definitions/BrokenConfigItem"
1432
+ },
1433
+ {
1434
+ "$ref": "#/definitions/ConfigItem"
1435
+ }
1436
+ ]
1437
+ }
1438
+ },
1439
+ "id": {
1440
+ "type": "string"
1441
+ }
1442
+ },
1443
+ "required": [
1444
+ "content",
1445
+ "level",
1446
+ "location",
1447
+ "margin",
1448
+ "name",
1449
+ "type"
1450
+ ]
1451
+ },
1452
+ "BlockConfig": {
1453
+ "type": "object",
1454
+ "properties": {
1455
+ "name": {
1456
+ "type": "string"
1457
+ },
1458
+ "type": {
1459
+ "type": "string",
1460
+ "enum": [
1461
+ "config"
1462
+ ]
1463
+ },
1464
+ "config": {
1465
+ "type": "array",
1466
+ "items": {
1467
+ "$ref": "#/definitions/ConfigItem"
1468
+ }
1469
+ },
1470
+ "margin": {
1471
+ "type": "string"
1472
+ }
1473
+ },
1474
+ "required": [
1475
+ "config",
1476
+ "margin",
1477
+ "name",
1478
+ "type"
1479
+ ]
1480
+ },
1481
+ "Alias": {
1482
+ "type": "object",
1483
+ "properties": {
1484
+ "name": {
1485
+ "type": "string"
1486
+ },
1487
+ "type": {
1488
+ "type": "string",
1489
+ "enum": [
1490
+ "alias"
1491
+ ]
1492
+ },
1493
+ "replacement": {
1494
+ "type": "array",
1495
+ "items": {
1496
+ "type": "string"
1497
+ }
1498
+ },
1499
+ "margin": {
1500
+ "type": "string"
1501
+ }
1502
+ },
1503
+ "required": [
1504
+ "margin",
1505
+ "name",
1506
+ "replacement",
1507
+ "type"
1508
+ ]
1509
+ },
1510
+ "Separator": {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "type": {
1514
+ "type": "string",
1515
+ "enum": [
1516
+ "separator"
1517
+ ]
1518
+ },
1519
+ "text": {
1520
+ "type": "string"
1521
+ }
1522
+ },
1523
+ "required": [
1524
+ "text",
1525
+ "type"
1526
+ ]
1527
+ },
1528
+ "BlockPod": {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "name": {
1532
+ "type": "string",
1533
+ "enum": [
1534
+ "pod"
1535
+ ]
1536
+ },
1537
+ "type": {
1538
+ "type": "string",
1539
+ "enum": [
1540
+ "block"
1541
+ ]
1542
+ },
1543
+ "location": {
1544
+ "$ref": "#/definitions/Location"
1545
+ },
1546
+ "content": {
1547
+ "type": "array",
1548
+ "items": {
1549
+ "$ref": "#/definitions/PodNode"
1550
+ }
1551
+ },
1552
+ "margin": {
1553
+ "type": "string"
1554
+ },
1555
+ "config": {
1556
+ "type": "array",
1557
+ "items": {
1558
+ "anyOf": [
1559
+ {
1560
+ "$ref": "#/definitions/BrokenConfigItem"
1561
+ },
1562
+ {
1563
+ "$ref": "#/definitions/ConfigItem"
1564
+ }
1565
+ ]
1566
+ }
1567
+ },
1568
+ "id": {
1569
+ "type": "string"
1570
+ }
1571
+ },
1572
+ "required": [
1573
+ "content",
1574
+ "location",
1575
+ "margin",
1576
+ "name",
1577
+ "type"
1578
+ ]
1579
+ },
1580
+ "BlockData": {
1581
+ "type": "object",
1582
+ "properties": {
1583
+ "name": {
1584
+ "type": "string",
1585
+ "enum": [
1586
+ "data"
1587
+ ]
1588
+ },
1589
+ "type": {
1590
+ "type": "string",
1591
+ "enum": [
1592
+ "block"
1593
+ ]
1594
+ },
1595
+ "location": {
1596
+ "$ref": "#/definitions/Location"
1597
+ },
1598
+ "content": {
1599
+ "type": "array",
1600
+ "items": {
1601
+ "$ref": "#/definitions/PodNode"
1602
+ }
1603
+ },
1604
+ "margin": {
1605
+ "type": "string"
1606
+ },
1607
+ "config": {
1608
+ "type": "array",
1609
+ "items": {
1610
+ "anyOf": [
1611
+ {
1612
+ "$ref": "#/definitions/BrokenConfigItem"
1613
+ },
1614
+ {
1615
+ "$ref": "#/definitions/ConfigItem"
1616
+ }
1617
+ ]
1618
+ }
1619
+ },
1620
+ "id": {
1621
+ "type": "string"
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "content",
1626
+ "location",
1627
+ "margin",
1628
+ "name",
1629
+ "type"
1630
+ ]
1631
+ },
1632
+ "BlockComment": {
1633
+ "type": "object",
1634
+ "properties": {
1635
+ "name": {
1636
+ "type": "string",
1637
+ "enum": [
1638
+ "comment"
1639
+ ]
1640
+ },
1641
+ "type": {
1642
+ "type": "string",
1643
+ "enum": [
1644
+ "block"
1645
+ ]
1646
+ },
1647
+ "location": {
1648
+ "$ref": "#/definitions/Location"
1649
+ },
1650
+ "content": {
1651
+ "type": "array",
1652
+ "items": {
1653
+ "$ref": "#/definitions/PodNode"
1654
+ }
1655
+ },
1656
+ "margin": {
1657
+ "type": "string"
1658
+ },
1659
+ "config": {
1660
+ "type": "array",
1661
+ "items": {
1662
+ "anyOf": [
1663
+ {
1664
+ "$ref": "#/definitions/BrokenConfigItem"
1000
1665
  },
1001
1666
  {
1002
- "type": "string"
1667
+ "$ref": "#/definitions/ConfigItem"
1003
1668
  }
1004
1669
  ]
1005
1670
  }
1671
+ },
1672
+ "id": {
1673
+ "type": "string"
1006
1674
  }
1007
1675
  },
1008
1676
  "required": [
1009
1677
  "content",
1010
1678
  "location",
1011
1679
  "margin",
1012
- "text",
1680
+ "name",
1013
1681
  "type"
1014
1682
  ]
1015
1683
  },
1016
- "Code": {
1684
+ "BlockDefn": {
1017
1685
  "type": "object",
1018
1686
  "properties": {
1019
- "type": {
1687
+ "name": {
1020
1688
  "type": "string",
1021
1689
  "enum": [
1022
- "code"
1690
+ "defn"
1023
1691
  ]
1024
1692
  },
1025
- "text": {
1026
- "type": "string"
1027
- },
1028
- "margin": {
1029
- "type": "string"
1693
+ "type": {
1694
+ "type": "string",
1695
+ "enum": [
1696
+ "block"
1697
+ ]
1030
1698
  },
1031
1699
  "location": {
1032
1700
  "$ref": "#/definitions/Location"
1033
1701
  },
1034
1702
  "content": {
1703
+ "type": "array",
1704
+ "items": {
1705
+ "$ref": "#/definitions/PodNode"
1706
+ }
1707
+ },
1708
+ "margin": {
1709
+ "type": "string"
1710
+ },
1711
+ "config": {
1035
1712
  "type": "array",
1036
1713
  "items": {
1037
1714
  "anyOf": [
1038
1715
  {
1039
- "$ref": "#/definitions/Verbatim"
1716
+ "$ref": "#/definitions/BrokenConfigItem"
1040
1717
  },
1041
1718
  {
1042
- "type": "string"
1719
+ "$ref": "#/definitions/ConfigItem"
1043
1720
  }
1044
1721
  ]
1045
1722
  }
1723
+ },
1724
+ "id": {
1725
+ "type": "string"
1046
1726
  }
1047
1727
  },
1048
1728
  "required": [
1049
1729
  "content",
1050
1730
  "location",
1051
1731
  "margin",
1052
- "text",
1732
+ "name",
1053
1733
  "type"
1054
1734
  ]
1055
1735
  },
1056
- "BlankLine": {
1736
+ "BlockOutput": {
1057
1737
  "type": "object",
1058
1738
  "properties": {
1739
+ "name": {
1740
+ "type": "string",
1741
+ "enum": [
1742
+ "output"
1743
+ ]
1744
+ },
1059
1745
  "type": {
1060
1746
  "type": "string",
1061
1747
  "enum": [
1062
- "blankline"
1748
+ "block"
1063
1749
  ]
1750
+ },
1751
+ "location": {
1752
+ "$ref": "#/definitions/Location"
1753
+ },
1754
+ "content": {
1755
+ "type": "array",
1756
+ "items": {
1757
+ "$ref": "#/definitions/PodNode"
1758
+ }
1759
+ },
1760
+ "margin": {
1761
+ "type": "string"
1762
+ },
1763
+ "config": {
1764
+ "type": "array",
1765
+ "items": {
1766
+ "anyOf": [
1767
+ {
1768
+ "$ref": "#/definitions/BrokenConfigItem"
1769
+ },
1770
+ {
1771
+ "$ref": "#/definitions/ConfigItem"
1772
+ }
1773
+ ]
1774
+ }
1775
+ },
1776
+ "id": {
1777
+ "type": "string"
1064
1778
  }
1065
1779
  },
1066
1780
  "required": [
1781
+ "content",
1782
+ "location",
1783
+ "margin",
1784
+ "name",
1067
1785
  "type"
1068
1786
  ]
1069
1787
  },
1070
- "List": {
1788
+ "BlockInput": {
1071
1789
  "type": "object",
1072
1790
  "properties": {
1073
- "type": {
1791
+ "name": {
1074
1792
  "type": "string",
1075
1793
  "enum": [
1076
- "list"
1794
+ "input"
1077
1795
  ]
1078
1796
  },
1079
- "level": {
1080
- "type": [
1081
- "string",
1082
- "number"
1797
+ "type": {
1798
+ "type": "string",
1799
+ "enum": [
1800
+ "block"
1083
1801
  ]
1084
1802
  },
1803
+ "location": {
1804
+ "$ref": "#/definitions/Location"
1805
+ },
1085
1806
  "content": {
1086
1807
  "type": "array",
1087
1808
  "items": {
1088
1809
  "$ref": "#/definitions/PodNode"
1089
1810
  }
1090
1811
  },
1091
- "list": {
1092
- "type": "string",
1093
- "enum": [
1094
- "itemized"
1095
- ]
1812
+ "margin": {
1813
+ "type": "string"
1814
+ },
1815
+ "config": {
1816
+ "type": "array",
1817
+ "items": {
1818
+ "anyOf": [
1819
+ {
1820
+ "$ref": "#/definitions/BrokenConfigItem"
1821
+ },
1822
+ {
1823
+ "$ref": "#/definitions/ConfigItem"
1824
+ }
1825
+ ]
1826
+ }
1827
+ },
1828
+ "id": {
1829
+ "type": "string"
1096
1830
  }
1097
1831
  },
1098
1832
  "required": [
1099
1833
  "content",
1100
- "level",
1101
- "list",
1834
+ "location",
1835
+ "margin",
1836
+ "name",
1102
1837
  "type"
1103
1838
  ]
1104
1839
  },
1105
- "BlockConfig": {
1840
+ "BlockPara": {
1106
1841
  "type": "object",
1107
1842
  "properties": {
1108
1843
  "name": {
1109
- "type": "string"
1844
+ "type": "string",
1845
+ "enum": [
1846
+ "para"
1847
+ ]
1110
1848
  },
1111
1849
  "type": {
1112
1850
  "type": "string",
1113
1851
  "enum": [
1114
- "config"
1852
+ "block"
1115
1853
  ]
1116
1854
  },
1117
- "config": {
1855
+ "location": {
1856
+ "$ref": "#/definitions/Location"
1857
+ },
1858
+ "content": {
1118
1859
  "type": "array",
1119
1860
  "items": {
1120
- "$ref": "#/definitions/ConfigItem"
1861
+ "$ref": "#/definitions/PodNode"
1121
1862
  }
1122
1863
  },
1123
1864
  "margin": {
1124
1865
  "type": "string"
1866
+ },
1867
+ "config": {
1868
+ "type": "array",
1869
+ "items": {
1870
+ "anyOf": [
1871
+ {
1872
+ "$ref": "#/definitions/BrokenConfigItem"
1873
+ },
1874
+ {
1875
+ "$ref": "#/definitions/ConfigItem"
1876
+ }
1877
+ ]
1878
+ }
1879
+ },
1880
+ "id": {
1881
+ "type": "string"
1125
1882
  }
1126
1883
  },
1127
1884
  "required": [
1128
- "config",
1885
+ "content",
1886
+ "location",
1129
1887
  "margin",
1130
1888
  "name",
1131
1889
  "type"
1132
1890
  ]
1133
1891
  },
1134
- "Alias": {
1892
+ "BlockCode": {
1135
1893
  "type": "object",
1136
1894
  "properties": {
1137
1895
  "name": {
1138
- "type": "string"
1896
+ "type": "string",
1897
+ "enum": [
1898
+ "code"
1899
+ ]
1139
1900
  },
1140
1901
  "type": {
1141
1902
  "type": "string",
1142
1903
  "enum": [
1143
- "alias"
1904
+ "block"
1144
1905
  ]
1145
1906
  },
1146
- "replacement": {
1907
+ "location": {
1908
+ "$ref": "#/definitions/Location"
1909
+ },
1910
+ "content": {
1147
1911
  "type": "array",
1148
1912
  "items": {
1149
- "type": "string"
1913
+ "$ref": "#/definitions/PodNode"
1150
1914
  }
1151
1915
  },
1152
1916
  "margin": {
1153
1917
  "type": "string"
1918
+ },
1919
+ "config": {
1920
+ "type": "array",
1921
+ "items": {
1922
+ "anyOf": [
1923
+ {
1924
+ "$ref": "#/definitions/BrokenConfigItem"
1925
+ },
1926
+ {
1927
+ "$ref": "#/definitions/ConfigItem"
1928
+ }
1929
+ ]
1930
+ }
1931
+ },
1932
+ "id": {
1933
+ "type": "string"
1154
1934
  }
1155
1935
  },
1156
1936
  "required": [
1937
+ "content",
1938
+ "location",
1157
1939
  "margin",
1158
1940
  "name",
1159
- "replacement",
1160
1941
  "type"
1161
1942
  ]
1162
1943
  },
1163
- "BlockItem": {
1944
+ "BlockNested": {
1164
1945
  "type": "object",
1165
1946
  "properties": {
1166
1947
  "name": {
1167
1948
  "type": "string",
1168
1949
  "enum": [
1169
- "item"
1950
+ "nested"
1170
1951
  ]
1171
1952
  },
1172
- "level": {
1173
- "type": "string"
1174
- },
1175
1953
  "type": {
1176
1954
  "type": "string",
1177
1955
  "enum": [
@@ -1202,24 +1980,32 @@
1202
1980
  }
1203
1981
  ]
1204
1982
  }
1983
+ },
1984
+ "id": {
1985
+ "type": "string"
1205
1986
  }
1206
1987
  },
1207
1988
  "required": [
1208
1989
  "content",
1209
- "level",
1210
1990
  "location",
1211
1991
  "margin",
1212
1992
  "name",
1213
1993
  "type"
1214
1994
  ]
1215
1995
  },
1216
- "BlockPara": {
1996
+ "BlockHead": {
1217
1997
  "type": "object",
1218
1998
  "properties": {
1219
1999
  "name": {
1220
2000
  "type": "string",
1221
2001
  "enum": [
1222
- "para"
2002
+ "head"
2003
+ ]
2004
+ },
2005
+ "level": {
2006
+ "type": [
2007
+ "string",
2008
+ "number"
1223
2009
  ]
1224
2010
  },
1225
2011
  "type": {
@@ -1252,10 +2038,14 @@
1252
2038
  }
1253
2039
  ]
1254
2040
  }
2041
+ },
2042
+ "id": {
2043
+ "type": "string"
1255
2044
  }
1256
2045
  },
1257
2046
  "required": [
1258
2047
  "content",
2048
+ "level",
1259
2049
  "location",
1260
2050
  "margin",
1261
2051
  "name",
@@ -1275,6 +2065,9 @@
1275
2065
  "type": "array",
1276
2066
  "items": {
1277
2067
  "anyOf": [
2068
+ {
2069
+ "$ref": "#/definitions/BlankLine"
2070
+ },
1278
2071
  {
1279
2072
  "$ref": "#/definitions/TableRow"
1280
2073
  },
@@ -1314,6 +2107,9 @@
1314
2107
  }
1315
2108
  ]
1316
2109
  }
2110
+ },
2111
+ "id": {
2112
+ "type": "string"
1317
2113
  }
1318
2114
  },
1319
2115
  "required": [
@@ -1426,12 +2222,49 @@
1426
2222
  "type"
1427
2223
  ]
1428
2224
  },
1429
- "BlockAny": {
2225
+ "BlockNamed": {
1430
2226
  "type": "object",
1431
2227
  "properties": {
1432
2228
  "name": {
1433
2229
  "type": "string"
1434
2230
  },
2231
+ "content": {
2232
+ "anyOf": [
2233
+ {
2234
+ "type": "array",
2235
+ "items": [
2236
+ {
2237
+ "anyOf": [
2238
+ {
2239
+ "$ref": "#/definitions/Verbatim"
2240
+ },
2241
+ {
2242
+ "$ref": "#/definitions/Para"
2243
+ },
2244
+ {
2245
+ "$ref": "#/definitions/Code"
2246
+ }
2247
+ ]
2248
+ }
2249
+ ],
2250
+ "minItems": 0,
2251
+ "maxItems": 1
2252
+ },
2253
+ {
2254
+ "type": "array",
2255
+ "items": {
2256
+ "anyOf": [
2257
+ {
2258
+ "$ref": "#/definitions/Image"
2259
+ },
2260
+ {
2261
+ "$ref": "#/definitions/BlockCaption"
2262
+ }
2263
+ ]
2264
+ }
2265
+ }
2266
+ ]
2267
+ },
1435
2268
  "type": {
1436
2269
  "type": "string",
1437
2270
  "enum": [
@@ -1441,12 +2274,6 @@
1441
2274
  "location": {
1442
2275
  "$ref": "#/definitions/Location"
1443
2276
  },
1444
- "content": {
1445
- "type": "array",
1446
- "items": {
1447
- "$ref": "#/definitions/PodNode"
1448
- }
1449
- },
1450
2277
  "margin": {
1451
2278
  "type": "string"
1452
2279
  },
@@ -1462,6 +2289,9 @@
1462
2289
  }
1463
2290
  ]
1464
2291
  }
2292
+ },
2293
+ "id": {
2294
+ "type": "string"
1465
2295
  }
1466
2296
  },
1467
2297
  "required": [