@podlite/schema 0.0.50 → 0.0.52

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.
Files changed (105) hide show
  1. package/CHANGELOG.podlite +22 -0
  2. package/LICENSE +1 -1
  3. package/esm/ast-helpers.js.map +1 -1
  4. package/esm/ast-inerator.js.map +1 -1
  5. package/esm/blocks-helpers.js.map +1 -1
  6. package/esm/exportAny.d.ts +2 -2
  7. package/esm/exportAny.js.map +1 -1
  8. package/esm/exportHtml.d.ts +1 -1
  9. package/esm/exportHtml.js +17 -7
  10. package/esm/exportHtml.js.map +1 -1
  11. package/esm/exportMarkdown.d.ts +1 -1
  12. package/esm/exportMarkdown.js +3 -9
  13. package/esm/exportMarkdown.js.map +1 -1
  14. package/esm/grammar.js +1133 -562
  15. package/esm/grammar.js.map +1 -1
  16. package/esm/grammarfc.js +1300 -1065
  17. package/esm/grammarfc.js.map +1 -1
  18. package/esm/helpers/config.d.ts +1 -1
  19. package/esm/helpers/config.js.map +1 -1
  20. package/esm/helpers/configPropagation.d.ts +2 -2
  21. package/esm/helpers/configPropagation.js.map +1 -1
  22. package/esm/helpers/corePlugins.js.map +1 -1
  23. package/esm/helpers/handlers.js.map +1 -1
  24. package/esm/helpers/headingNumbering.d.ts +2 -2
  25. package/esm/helpers/headingNumbering.js.map +1 -1
  26. package/esm/helpers/ids.js.map +1 -1
  27. package/esm/helpers/itemNumbering.d.ts +2 -2
  28. package/esm/helpers/itemNumbering.js.map +1 -1
  29. package/esm/helpers/makeInterator.js.map +1 -1
  30. package/esm/helpers/makeQuery.d.ts +2 -2
  31. package/esm/helpers/makeQuery.js.map +1 -1
  32. package/esm/helpers/makeTransformer.js.map +1 -1
  33. package/esm/helpers/parseAttributes.js.map +1 -1
  34. package/esm/helpers/plugins.js.map +1 -1
  35. package/esm/image-base.js.map +1 -1
  36. package/esm/index.d.ts +7 -10
  37. package/esm/index.js +3 -2
  38. package/esm/index.js.map +1 -1
  39. package/esm/pluggableParser.js.map +1 -1
  40. package/esm/plugin-clean-location.js.map +1 -1
  41. package/esm/plugin-data-table.js.map +1 -1
  42. package/esm/plugin-defn-fill-term.js.map +1 -1
  43. package/esm/plugin-group-defn.js +1 -1
  44. package/esm/plugin-group-defn.js.map +1 -1
  45. package/esm/plugin-group-items.js.map +1 -1
  46. package/esm/plugin-heading.js.map +1 -1
  47. package/esm/plugin-items.js.map +1 -1
  48. package/esm/plugin-set.d.ts +2 -0
  49. package/esm/plugin-set.js +54 -0
  50. package/esm/plugin-set.js.map +1 -0
  51. package/esm/plugin-tables.js +5 -2
  52. package/esm/plugin-tables.js.map +1 -1
  53. package/esm/plugin-vmargin.js.map +1 -1
  54. package/esm/query-helpers.d.ts +2 -2
  55. package/esm/query-helpers.js.map +1 -1
  56. package/esm/selectors.d.ts +6 -6
  57. package/esm/selectors.js.map +1 -1
  58. package/esm/types.d.ts +9 -8
  59. package/esm/version.d.ts +1 -1
  60. package/esm/version.js +1 -1
  61. package/esm/writer.d.ts +0 -1
  62. package/esm/writer.js.map +1 -1
  63. package/lib/ast-inerator.js +2 -2
  64. package/lib/exportAny.d.ts +2 -2
  65. package/lib/exportHtml.d.ts +1 -1
  66. package/lib/exportHtml.js +17 -7
  67. package/lib/exportMarkdown.d.ts +1 -1
  68. package/lib/exportMarkdown.js +3 -9
  69. package/lib/grammar.js +1133 -562
  70. package/lib/grammarfc.js +1300 -1065
  71. package/lib/helpers/config.d.ts +1 -1
  72. package/lib/helpers/configPropagation.d.ts +2 -2
  73. package/lib/helpers/headingNumbering.d.ts +2 -2
  74. package/lib/helpers/itemNumbering.d.ts +2 -2
  75. package/lib/helpers/makeQuery.d.ts +2 -2
  76. package/lib/helpers/makeQuery.js +2 -2
  77. package/lib/helpers/makeTransformer.js +3 -3
  78. package/lib/helpers/parseAttributes.js +23 -10
  79. package/lib/index.d.ts +7 -10
  80. package/lib/index.js +35 -26
  81. package/lib/plugin-formatting-codes.js +22 -8
  82. package/lib/plugin-group-defn.js +1 -1
  83. package/lib/plugin-set.d.ts +2 -0
  84. package/lib/plugin-set.js +56 -0
  85. package/lib/plugin-tables.js +12 -10
  86. package/lib/query-helpers.d.ts +2 -2
  87. package/lib/selectors.d.ts +6 -6
  88. package/lib/types.d.ts +9 -8
  89. package/lib/version.d.ts +1 -1
  90. package/lib/version.js +1 -1
  91. package/lib/writer.d.ts +0 -1
  92. package/lib/writer.js +22 -8
  93. package/package.json +7 -3
  94. package/schema/AstTree.json +200 -382
  95. package/schema/PodliteDocument.json +200 -382
  96. package/esm/fallback-resolver.d.ts +0 -24
  97. package/esm/fallback-resolver.js +0 -86
  98. package/esm/fallback-resolver.js.map +0 -1
  99. package/esm/materialize-fallback.d.ts +0 -6
  100. package/esm/materialize-fallback.js +0 -61
  101. package/esm/materialize-fallback.js.map +0 -1
  102. package/lib/fallback-resolver.d.ts +0 -24
  103. package/lib/fallback-resolver.js +0 -94
  104. package/lib/materialize-fallback.d.ts +0 -6
  105. package/lib/materialize-fallback.js +0 -66
@@ -1,114 +1,6 @@
1
1
  {
2
2
  "$ref": "#/definitions/RootBlock",
3
3
  "definitions": {
4
- "Ambient": {
5
- "type": "object",
6
- "properties": {
7
- "type": {
8
- "type": "string",
9
- "enum": [
10
- "ambient"
11
- ]
12
- },
13
- "text": {
14
- "type": "string"
15
- },
16
- "location": {
17
- "$ref": "#/definitions/Location"
18
- }
19
- },
20
- "required": [
21
- "location",
22
- "text",
23
- "type"
24
- ]
25
- },
26
- "Location": {
27
- "type": "object",
28
- "properties": {
29
- "start": {
30
- "$ref": "#/definitions/Position"
31
- },
32
- "end": {
33
- "$ref": "#/definitions/Position"
34
- }
35
- },
36
- "required": [
37
- "end",
38
- "start"
39
- ]
40
- },
41
- "Position": {
42
- "type": "object",
43
- "properties": {
44
- "line": {
45
- "type": "number"
46
- },
47
- "column": {
48
- "type": "number"
49
- },
50
- "offset": {
51
- "type": "number"
52
- }
53
- },
54
- "required": [
55
- "column",
56
- "line",
57
- "offset"
58
- ]
59
- },
60
- "BlockPod": {
61
- "type": "object",
62
- "properties": {
63
- "name": {
64
- "type": "string",
65
- "enum": [
66
- "pod"
67
- ]
68
- },
69
- "type": {
70
- "type": "string",
71
- "enum": [
72
- "block"
73
- ]
74
- },
75
- "location": {
76
- "$ref": "#/definitions/Location"
77
- },
78
- "content": {
79
- "type": "array",
80
- "items": {
81
- "$ref": "#/definitions/PodNode"
82
- }
83
- },
84
- "margin": {
85
- "type": "string"
86
- },
87
- "config": {
88
- "type": "array",
89
- "items": {
90
- "anyOf": [
91
- {
92
- "$ref": "#/definitions/BrokenConfigItem"
93
- },
94
- {
95
- "$ref": "#/definitions/ConfigItem"
96
- }
97
- ]
98
- }
99
- },
100
- "id": {
101
- "type": "string"
102
- }
103
- },
104
- "required": [
105
- "content",
106
- "location",
107
- "margin",
108
- "name",
109
- "type"
110
- ]
111
- },
112
4
  "PodNode": {
113
5
  "anyOf": [
114
6
  {
@@ -257,20 +149,70 @@
257
149
  }
258
150
  ]
259
151
  },
260
- "BlockData": {
152
+ "Ambient": {
153
+ "type": "object",
154
+ "properties": {
155
+ "type": {
156
+ "type": "string",
157
+ "const": "ambient"
158
+ },
159
+ "text": {
160
+ "type": "string"
161
+ },
162
+ "location": {
163
+ "$ref": "#/definitions/Location"
164
+ }
165
+ },
166
+ "required": [
167
+ "location",
168
+ "text",
169
+ "type"
170
+ ]
171
+ },
172
+ "Location": {
173
+ "type": "object",
174
+ "properties": {
175
+ "start": {
176
+ "$ref": "#/definitions/Position"
177
+ },
178
+ "end": {
179
+ "$ref": "#/definitions/Position"
180
+ }
181
+ },
182
+ "required": [
183
+ "end",
184
+ "start"
185
+ ]
186
+ },
187
+ "Position": {
188
+ "type": "object",
189
+ "properties": {
190
+ "line": {
191
+ "type": "number"
192
+ },
193
+ "column": {
194
+ "type": "number"
195
+ },
196
+ "offset": {
197
+ "type": "number"
198
+ }
199
+ },
200
+ "required": [
201
+ "column",
202
+ "line",
203
+ "offset"
204
+ ]
205
+ },
206
+ "BlockPod": {
261
207
  "type": "object",
262
208
  "properties": {
263
209
  "name": {
264
210
  "type": "string",
265
- "enum": [
266
- "data"
267
- ]
211
+ "const": "pod"
268
212
  },
269
213
  "type": {
270
214
  "type": "string",
271
- "enum": [
272
- "block"
273
- ]
215
+ "const": "block"
274
216
  },
275
217
  "location": {
276
218
  "$ref": "#/definitions/Location"
@@ -338,6 +280,9 @@
338
280
  ]
339
281
  }
340
282
  ]
283
+ },
284
+ "isFalse": {
285
+ "type": "boolean"
341
286
  }
342
287
  },
343
288
  "required": [
@@ -387,6 +332,9 @@
387
332
  },
388
333
  "type": {
389
334
  "type": "string"
335
+ },
336
+ "isFalse": {
337
+ "type": "boolean"
390
338
  }
391
339
  },
392
340
  "required": [
@@ -395,14 +343,60 @@
395
343
  "value"
396
344
  ]
397
345
  },
346
+ "BlockData": {
347
+ "type": "object",
348
+ "properties": {
349
+ "name": {
350
+ "type": "string",
351
+ "const": "data"
352
+ },
353
+ "type": {
354
+ "type": "string",
355
+ "const": "block"
356
+ },
357
+ "location": {
358
+ "$ref": "#/definitions/Location"
359
+ },
360
+ "content": {
361
+ "type": "array",
362
+ "items": {
363
+ "$ref": "#/definitions/PodNode"
364
+ }
365
+ },
366
+ "margin": {
367
+ "type": "string"
368
+ },
369
+ "config": {
370
+ "type": "array",
371
+ "items": {
372
+ "anyOf": [
373
+ {
374
+ "$ref": "#/definitions/BrokenConfigItem"
375
+ },
376
+ {
377
+ "$ref": "#/definitions/ConfigItem"
378
+ }
379
+ ]
380
+ }
381
+ },
382
+ "id": {
383
+ "type": "string"
384
+ }
385
+ },
386
+ "required": [
387
+ "content",
388
+ "location",
389
+ "margin",
390
+ "name",
391
+ "type"
392
+ ]
393
+ },
398
394
  "BlockFormula": {
399
395
  "type": "object",
400
396
  "properties": {
401
397
  "name": {
402
398
  "type": "string",
403
- "enum": [
404
- "formula"
405
- ]
399
+ "const": "formula"
406
400
  },
407
401
  "content": {
408
402
  "type": "array",
@@ -419,9 +413,7 @@
419
413
  },
420
414
  "type": {
421
415
  "type": "string",
422
- "enum": [
423
- "block"
424
- ]
416
+ "const": "block"
425
417
  },
426
418
  "location": {
427
419
  "$ref": "#/definitions/Location"
@@ -456,9 +448,7 @@
456
448
  "properties": {
457
449
  "type": {
458
450
  "type": "string",
459
- "enum": [
460
- "verbatim"
461
- ]
451
+ "const": "verbatim"
462
452
  },
463
453
  "value": {
464
454
  "type": "string"
@@ -474,15 +464,11 @@
474
464
  "properties": {
475
465
  "name": {
476
466
  "type": "string",
477
- "enum": [
478
- "code"
479
- ]
467
+ "const": "code"
480
468
  },
481
469
  "type": {
482
470
  "type": "string",
483
- "enum": [
484
- "block"
485
- ]
471
+ "const": "block"
486
472
  },
487
473
  "location": {
488
474
  "$ref": "#/definitions/Location"
@@ -526,9 +512,7 @@
526
512
  "properties": {
527
513
  "type": {
528
514
  "type": "string",
529
- "enum": [
530
- "blankline"
531
- ]
515
+ "const": "blankline"
532
516
  }
533
517
  },
534
518
  "required": [
@@ -540,15 +524,11 @@
540
524
  "properties": {
541
525
  "name": {
542
526
  "type": "string",
543
- "enum": [
544
- "nested"
545
- ]
527
+ "const": "nested"
546
528
  },
547
529
  "type": {
548
530
  "type": "string",
549
- "enum": [
550
- "block"
551
- ]
531
+ "const": "block"
552
532
  },
553
533
  "location": {
554
534
  "$ref": "#/definitions/Location"
@@ -592,15 +572,11 @@
592
572
  "properties": {
593
573
  "name": {
594
574
  "type": "string",
595
- "enum": [
596
- "markdown"
597
- ]
575
+ "const": "markdown"
598
576
  },
599
577
  "type": {
600
578
  "type": "string",
601
- "enum": [
602
- "block"
603
- ]
579
+ "const": "block"
604
580
  },
605
581
  "location": {
606
582
  "$ref": "#/definitions/Location"
@@ -644,15 +620,11 @@
644
620
  "properties": {
645
621
  "name": {
646
622
  "type": "string",
647
- "enum": [
648
- "output"
649
- ]
623
+ "const": "output"
650
624
  },
651
625
  "type": {
652
626
  "type": "string",
653
- "enum": [
654
- "block"
655
- ]
627
+ "const": "block"
656
628
  },
657
629
  "location": {
658
630
  "$ref": "#/definitions/Location"
@@ -696,15 +668,11 @@
696
668
  "properties": {
697
669
  "name": {
698
670
  "type": "string",
699
- "enum": [
700
- "input"
701
- ]
671
+ "const": "input"
702
672
  },
703
673
  "type": {
704
674
  "type": "string",
705
- "enum": [
706
- "block"
707
- ]
675
+ "const": "block"
708
676
  },
709
677
  "location": {
710
678
  "$ref": "#/definitions/Location"
@@ -748,15 +716,11 @@
748
716
  "properties": {
749
717
  "name": {
750
718
  "type": "string",
751
- "enum": [
752
- "include"
753
- ]
719
+ "const": "include"
754
720
  },
755
721
  "type": {
756
722
  "type": "string",
757
- "enum": [
758
- "block"
759
- ]
723
+ "const": "block"
760
724
  },
761
725
  "location": {
762
726
  "$ref": "#/definitions/Location"
@@ -800,15 +764,11 @@
800
764
  "properties": {
801
765
  "name": {
802
766
  "type": "string",
803
- "enum": [
804
- "para"
805
- ]
767
+ "const": "para"
806
768
  },
807
769
  "type": {
808
770
  "type": "string",
809
- "enum": [
810
- "block"
811
- ]
771
+ "const": "block"
812
772
  },
813
773
  "location": {
814
774
  "$ref": "#/definitions/Location"
@@ -852,9 +812,7 @@
852
812
  "properties": {
853
813
  "name": {
854
814
  "type": "string",
855
- "enum": [
856
- "head"
857
- ]
815
+ "const": "head"
858
816
  },
859
817
  "level": {
860
818
  "type": [
@@ -864,9 +822,7 @@
864
822
  },
865
823
  "type": {
866
824
  "type": "string",
867
- "enum": [
868
- "block"
869
- ]
825
+ "const": "block"
870
826
  },
871
827
  "location": {
872
828
  "$ref": "#/definitions/Location"
@@ -911,15 +867,11 @@
911
867
  "properties": {
912
868
  "name": {
913
869
  "type": "string",
914
- "enum": [
915
- "comment"
916
- ]
870
+ "const": "comment"
917
871
  },
918
872
  "type": {
919
873
  "type": "string",
920
- "enum": [
921
- "block"
922
- ]
874
+ "const": "block"
923
875
  },
924
876
  "location": {
925
877
  "$ref": "#/definitions/Location"
@@ -963,15 +915,11 @@
963
915
  "properties": {
964
916
  "name": {
965
917
  "type": "string",
966
- "enum": [
967
- "defn"
968
- ]
918
+ "const": "defn"
969
919
  },
970
920
  "type": {
971
921
  "type": "string",
972
- "enum": [
973
- "block"
974
- ]
922
+ "const": "block"
975
923
  },
976
924
  "location": {
977
925
  "$ref": "#/definitions/Location"
@@ -1015,9 +963,7 @@
1015
963
  "properties": {
1016
964
  "type": {
1017
965
  "type": "string",
1018
- "enum": [
1019
- "para"
1020
- ]
966
+ "const": "para"
1021
967
  },
1022
968
  "text": {
1023
969
  "type": "string"
@@ -1193,9 +1139,7 @@
1193
1139
  "properties": {
1194
1140
  "type": {
1195
1141
  "type": "string",
1196
- "enum": [
1197
- "text"
1198
- ]
1142
+ "const": "text"
1199
1143
  },
1200
1144
  "value": {
1201
1145
  "type": "string"
@@ -1211,9 +1155,7 @@
1211
1155
  "properties": {
1212
1156
  "type": {
1213
1157
  "type": "string",
1214
- "enum": [
1215
- "code"
1216
- ]
1158
+ "const": "code"
1217
1159
  },
1218
1160
  "text": {
1219
1161
  "type": "string"
@@ -1297,9 +1239,7 @@
1297
1239
  },
1298
1240
  "type": {
1299
1241
  "type": "string",
1300
- "enum": [
1301
- "block"
1302
- ]
1242
+ "const": "block"
1303
1243
  },
1304
1244
  "location": {
1305
1245
  "$ref": "#/definitions/Location"
@@ -1334,9 +1274,7 @@
1334
1274
  "properties": {
1335
1275
  "name": {
1336
1276
  "type": "string",
1337
- "enum": [
1338
- "root"
1339
- ]
1277
+ "const": "root"
1340
1278
  },
1341
1279
  "content": {
1342
1280
  "$ref": "#/definitions/AstTree"
@@ -1346,9 +1284,7 @@
1346
1284
  },
1347
1285
  "type": {
1348
1286
  "type": "string",
1349
- "enum": [
1350
- "block"
1351
- ]
1287
+ "const": "block"
1352
1288
  },
1353
1289
  "config": {
1354
1290
  "type": "array",
@@ -1385,9 +1321,7 @@
1385
1321
  "properties": {
1386
1322
  "type": {
1387
1323
  "type": "string",
1388
- "enum": [
1389
- "image"
1390
- ]
1324
+ "const": "image"
1391
1325
  },
1392
1326
  "src": {
1393
1327
  "type": "string"
@@ -1406,9 +1340,7 @@
1406
1340
  "properties": {
1407
1341
  "name": {
1408
1342
  "type": "string",
1409
- "enum": [
1410
- "caption"
1411
- ]
1343
+ "const": "caption"
1412
1344
  },
1413
1345
  "content": {
1414
1346
  "type": "array",
@@ -1418,9 +1350,7 @@
1418
1350
  },
1419
1351
  "type": {
1420
1352
  "type": "string",
1421
- "enum": [
1422
- "block"
1423
- ]
1353
+ "const": "block"
1424
1354
  }
1425
1355
  },
1426
1356
  "required": [
@@ -1434,9 +1364,7 @@
1434
1364
  "properties": {
1435
1365
  "name": {
1436
1366
  "type": "string",
1437
- "enum": [
1438
- "table"
1439
- ]
1367
+ "const": "table"
1440
1368
  },
1441
1369
  "content": {
1442
1370
  "type": "array",
@@ -1483,9 +1411,7 @@
1483
1411
  },
1484
1412
  "type": {
1485
1413
  "type": "string",
1486
- "enum": [
1487
- "block"
1488
- ]
1414
+ "const": "block"
1489
1415
  },
1490
1416
  "location": {
1491
1417
  "$ref": "#/definitions/Location"
@@ -1520,15 +1446,11 @@
1520
1446
  "properties": {
1521
1447
  "name": {
1522
1448
  "type": "string",
1523
- "enum": [
1524
- "row"
1525
- ]
1449
+ "const": "row"
1526
1450
  },
1527
1451
  "type": {
1528
1452
  "type": "string",
1529
- "enum": [
1530
- "block"
1531
- ]
1453
+ "const": "block"
1532
1454
  },
1533
1455
  "content": {
1534
1456
  "type": "array",
@@ -1548,15 +1470,11 @@
1548
1470
  "properties": {
1549
1471
  "name": {
1550
1472
  "type": "string",
1551
- "enum": [
1552
- "cell"
1553
- ]
1473
+ "const": "cell"
1554
1474
  },
1555
1475
  "type": {
1556
1476
  "type": "string",
1557
- "enum": [
1558
- "block"
1559
- ]
1477
+ "const": "block"
1560
1478
  },
1561
1479
  "content": {
1562
1480
  "type": "array",
@@ -1576,15 +1494,11 @@
1576
1494
  "properties": {
1577
1495
  "name": {
1578
1496
  "type": "string",
1579
- "enum": [
1580
- "row"
1581
- ]
1497
+ "const": "row"
1582
1498
  },
1583
1499
  "type": {
1584
1500
  "type": "string",
1585
- "enum": [
1586
- "block"
1587
- ]
1501
+ "const": "block"
1588
1502
  },
1589
1503
  "content": {
1590
1504
  "type": "array",
@@ -1604,9 +1518,7 @@
1604
1518
  "properties": {
1605
1519
  "type": {
1606
1520
  "type": "string",
1607
- "enum": [
1608
- "separator"
1609
- ]
1521
+ "const": "separator"
1610
1522
  },
1611
1523
  "text": {
1612
1524
  "type": "string"
@@ -1622,9 +1534,7 @@
1622
1534
  "properties": {
1623
1535
  "type": {
1624
1536
  "type": "string",
1625
- "enum": [
1626
- "list"
1627
- ]
1537
+ "const": "list"
1628
1538
  },
1629
1539
  "level": {
1630
1540
  "type": [
@@ -1650,9 +1560,7 @@
1650
1560
  },
1651
1561
  "list": {
1652
1562
  "type": "string",
1653
- "enum": [
1654
- "itemized"
1655
- ]
1563
+ "const": "itemized"
1656
1564
  }
1657
1565
  },
1658
1566
  "required": [
@@ -1667,9 +1575,7 @@
1667
1575
  "properties": {
1668
1576
  "name": {
1669
1577
  "type": "string",
1670
- "enum": [
1671
- "item"
1672
- ]
1578
+ "const": "item"
1673
1579
  },
1674
1580
  "content": {
1675
1581
  "type": "array",
@@ -1688,9 +1594,7 @@
1688
1594
  },
1689
1595
  "type": {
1690
1596
  "type": "string",
1691
- "enum": [
1692
- "block"
1693
- ]
1597
+ "const": "block"
1694
1598
  },
1695
1599
  "location": {
1696
1600
  "$ref": "#/definitions/Location"
@@ -1732,9 +1636,7 @@
1732
1636
  },
1733
1637
  "type": {
1734
1638
  "type": "string",
1735
- "enum": [
1736
- "config"
1737
- ]
1639
+ "const": "config"
1738
1640
  },
1739
1641
  "config": {
1740
1642
  "type": "array",
@@ -1761,9 +1663,7 @@
1761
1663
  },
1762
1664
  "type": {
1763
1665
  "type": "string",
1764
- "enum": [
1765
- "alias"
1766
- ]
1666
+ "const": "alias"
1767
1667
  },
1768
1668
  "replacement": {
1769
1669
  "type": "array",
@@ -1787,15 +1687,11 @@
1787
1687
  "properties": {
1788
1688
  "name": {
1789
1689
  "type": "string",
1790
- "enum": [
1791
- "toc"
1792
- ]
1690
+ "const": "toc"
1793
1691
  },
1794
1692
  "type": {
1795
1693
  "type": "string",
1796
- "enum": [
1797
- "block"
1798
- ]
1694
+ "const": "block"
1799
1695
  },
1800
1696
  "location": {
1801
1697
  "$ref": "#/definitions/Location"
@@ -1839,9 +1735,7 @@
1839
1735
  "properties": {
1840
1736
  "name": {
1841
1737
  "type": "string",
1842
- "enum": [
1843
- "picture"
1844
- ]
1738
+ "const": "picture"
1845
1739
  },
1846
1740
  "caption": {
1847
1741
  "type": "string"
@@ -1867,9 +1761,7 @@
1867
1761
  },
1868
1762
  "type": {
1869
1763
  "type": "string",
1870
- "enum": [
1871
- "block"
1872
- ]
1764
+ "const": "block"
1873
1765
  },
1874
1766
  "location": {
1875
1767
  "$ref": "#/definitions/Location"
@@ -1904,9 +1796,7 @@
1904
1796
  "properties": {
1905
1797
  "name": {
1906
1798
  "type": "string",
1907
- "enum": [
1908
- "image"
1909
- ]
1799
+ "const": "image"
1910
1800
  },
1911
1801
  "caption": {
1912
1802
  "type": "string"
@@ -1932,9 +1822,7 @@
1932
1822
  },
1933
1823
  "type": {
1934
1824
  "type": "string",
1935
- "enum": [
1936
- "block"
1937
- ]
1825
+ "const": "block"
1938
1826
  },
1939
1827
  "location": {
1940
1828
  "$ref": "#/definitions/Location"
@@ -1969,9 +1857,7 @@
1969
1857
  "properties": {
1970
1858
  "type": {
1971
1859
  "type": "string",
1972
- "enum": [
1973
- "separator"
1974
- ]
1860
+ "const": "separator"
1975
1861
  },
1976
1862
  "text": {
1977
1863
  "type": "string"
@@ -1987,15 +1873,11 @@
1987
1873
  "properties": {
1988
1874
  "type": {
1989
1875
  "type": "string",
1990
- "enum": [
1991
- "fcode"
1992
- ]
1876
+ "const": "fcode"
1993
1877
  },
1994
1878
  "name": {
1995
1879
  "type": "string",
1996
- "enum": [
1997
- "A"
1998
- ]
1880
+ "const": "A"
1999
1881
  },
2000
1882
  "content": {
2001
1883
  "anyOf": [
@@ -2029,15 +1911,11 @@
2029
1911
  "properties": {
2030
1912
  "type": {
2031
1913
  "type": "string",
2032
- "enum": [
2033
- "fcode"
2034
- ]
1914
+ "const": "fcode"
2035
1915
  },
2036
1916
  "name": {
2037
1917
  "type": "string",
2038
- "enum": [
2039
- "C"
2040
- ]
1918
+ "const": "C"
2041
1919
  },
2042
1920
  "content": {
2043
1921
  "type": "array",
@@ -2102,15 +1980,11 @@
2102
1980
  "properties": {
2103
1981
  "type": {
2104
1982
  "type": "string",
2105
- "enum": [
2106
- "fcode"
2107
- ]
1983
+ "const": "fcode"
2108
1984
  },
2109
1985
  "name": {
2110
1986
  "type": "string",
2111
- "enum": [
2112
- "B"
2113
- ]
1987
+ "const": "B"
2114
1988
  },
2115
1989
  "content": {
2116
1990
  "type": "array",
@@ -2129,15 +2003,11 @@
2129
2003
  "properties": {
2130
2004
  "type": {
2131
2005
  "type": "string",
2132
- "enum": [
2133
- "fcode"
2134
- ]
2006
+ "const": "fcode"
2135
2007
  },
2136
2008
  "name": {
2137
2009
  "type": "string",
2138
- "enum": [
2139
- "D"
2140
- ]
2010
+ "const": "D"
2141
2011
  },
2142
2012
  "synonyms": {
2143
2013
  "type": "array",
@@ -2161,15 +2031,11 @@
2161
2031
  "properties": {
2162
2032
  "type": {
2163
2033
  "type": "string",
2164
- "enum": [
2165
- "fcode"
2166
- ]
2034
+ "const": "fcode"
2167
2035
  },
2168
2036
  "name": {
2169
2037
  "type": "string",
2170
- "enum": [
2171
- "E"
2172
- ]
2038
+ "const": "E"
2173
2039
  },
2174
2040
  "content": {
2175
2041
  "type": "array",
@@ -2180,9 +2046,7 @@
2180
2046
  "properties": {
2181
2047
  "type": {
2182
2048
  "type": "string",
2183
- "enum": [
2184
- "number"
2185
- ]
2049
+ "const": "number"
2186
2050
  },
2187
2051
  "value": {
2188
2052
  "type": "number"
@@ -2198,9 +2062,7 @@
2198
2062
  "properties": {
2199
2063
  "type": {
2200
2064
  "type": "string",
2201
- "enum": [
2202
- "unicode_name"
2203
- ]
2065
+ "const": "unicode_name"
2204
2066
  },
2205
2067
  "value": {
2206
2068
  "type": "string"
@@ -2216,9 +2078,7 @@
2216
2078
  "properties": {
2217
2079
  "type": {
2218
2080
  "type": "string",
2219
- "enum": [
2220
- "html_named"
2221
- ]
2081
+ "const": "html_named"
2222
2082
  },
2223
2083
  "value": {
2224
2084
  "type": "string"
@@ -2244,15 +2104,11 @@
2244
2104
  "properties": {
2245
2105
  "type": {
2246
2106
  "type": "string",
2247
- "enum": [
2248
- "fcode"
2249
- ]
2107
+ "const": "fcode"
2250
2108
  },
2251
2109
  "name": {
2252
2110
  "type": "string",
2253
- "enum": [
2254
- "F"
2255
- ]
2111
+ "const": "F"
2256
2112
  },
2257
2113
  "content": {
2258
2114
  "type": "array",
@@ -2261,9 +2117,7 @@
2261
2117
  "properties": {
2262
2118
  "type": {
2263
2119
  "type": "string",
2264
- "enum": [
2265
- "text"
2266
- ]
2120
+ "const": "text"
2267
2121
  },
2268
2122
  "value": {
2269
2123
  "type": "string"
@@ -2287,15 +2141,11 @@
2287
2141
  "properties": {
2288
2142
  "type": {
2289
2143
  "type": "string",
2290
- "enum": [
2291
- "fcode"
2292
- ]
2144
+ "const": "fcode"
2293
2145
  },
2294
2146
  "name": {
2295
2147
  "type": "string",
2296
- "enum": [
2297
- "I"
2298
- ]
2148
+ "const": "I"
2299
2149
  },
2300
2150
  "meta": {
2301
2151
  "type": "string"
@@ -2323,15 +2173,11 @@
2323
2173
  "properties": {
2324
2174
  "type": {
2325
2175
  "type": "string",
2326
- "enum": [
2327
- "fcode"
2328
- ]
2176
+ "const": "fcode"
2329
2177
  },
2330
2178
  "name": {
2331
2179
  "type": "string",
2332
- "enum": [
2333
- "L"
2334
- ]
2180
+ "const": "L"
2335
2181
  },
2336
2182
  "meta": {
2337
2183
  "type": [
@@ -2372,15 +2218,11 @@
2372
2218
  "properties": {
2373
2219
  "type": {
2374
2220
  "type": "string",
2375
- "enum": [
2376
- "fcode"
2377
- ]
2221
+ "const": "fcode"
2378
2222
  },
2379
2223
  "name": {
2380
2224
  "type": "string",
2381
- "enum": [
2382
- "N"
2383
- ]
2225
+ "const": "N"
2384
2226
  },
2385
2227
  "content": {
2386
2228
  "type": "array",
@@ -2445,15 +2287,11 @@
2445
2287
  "properties": {
2446
2288
  "type": {
2447
2289
  "type": "string",
2448
- "enum": [
2449
- "fcode"
2450
- ]
2290
+ "const": "fcode"
2451
2291
  },
2452
2292
  "name": {
2453
2293
  "type": "string",
2454
- "enum": [
2455
- "X"
2456
- ]
2294
+ "const": "X"
2457
2295
  },
2458
2296
  "entry": {
2459
2297
  "anyOf": [
@@ -2532,15 +2370,11 @@
2532
2370
  "properties": {
2533
2371
  "type": {
2534
2372
  "type": "string",
2535
- "enum": [
2536
- "fcode"
2537
- ]
2373
+ "const": "fcode"
2538
2374
  },
2539
2375
  "name": {
2540
2376
  "type": "string",
2541
- "enum": [
2542
- "Z"
2543
- ]
2377
+ "const": "Z"
2544
2378
  },
2545
2379
  "content": {
2546
2380
  "type": "string"
@@ -2556,15 +2390,11 @@
2556
2390
  "properties": {
2557
2391
  "type": {
2558
2392
  "type": "string",
2559
- "enum": [
2560
- "fcode"
2561
- ]
2393
+ "const": "fcode"
2562
2394
  },
2563
2395
  "name": {
2564
2396
  "type": "string",
2565
- "enum": [
2566
- "V"
2567
- ]
2397
+ "const": "V"
2568
2398
  },
2569
2399
  "content": {
2570
2400
  "type": "string"
@@ -2580,15 +2410,11 @@
2580
2410
  "properties": {
2581
2411
  "type": {
2582
2412
  "type": "string",
2583
- "enum": [
2584
- "fcode"
2585
- ]
2413
+ "const": "fcode"
2586
2414
  },
2587
2415
  "name": {
2588
2416
  "type": "string",
2589
- "enum": [
2590
- "S"
2591
- ]
2417
+ "const": "S"
2592
2418
  },
2593
2419
  "content": {
2594
2420
  "anyOf": [
@@ -2611,9 +2437,7 @@
2611
2437
  "properties": {
2612
2438
  "type": {
2613
2439
  "type": "string",
2614
- "enum": [
2615
- "fcode"
2616
- ]
2440
+ "const": "fcode"
2617
2441
  },
2618
2442
  "name": {
2619
2443
  "type": "string"
@@ -2681,9 +2505,7 @@
2681
2505
  "properties": {
2682
2506
  "type": {
2683
2507
  "type": "string",
2684
- "enum": [
2685
- "toc"
2686
- ]
2508
+ "const": "toc"
2687
2509
  },
2688
2510
  "title": {
2689
2511
  "type": "string"
@@ -2714,9 +2536,7 @@
2714
2536
  "properties": {
2715
2537
  "type": {
2716
2538
  "type": "string",
2717
- "enum": [
2718
- "toc-list"
2719
- ]
2539
+ "const": "toc-list"
2720
2540
  },
2721
2541
  "level": {
2722
2542
  "type": "number"
@@ -2746,9 +2566,7 @@
2746
2566
  "properties": {
2747
2567
  "type": {
2748
2568
  "type": "string",
2749
- "enum": [
2750
- "toc-item"
2751
- ]
2569
+ "const": "toc-item"
2752
2570
  },
2753
2571
  "node": {
2754
2572
  "$ref": "#/definitions/PodNode"