-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathschema.json
2946 lines (2946 loc) · 118 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"description": "Root object for *Ironsworn: Starforged* game data.",
"type": "object",
"properties": {
"Encounters": {
"type": "array",
"items": { "$ref": "#/definitions/IEncounterStarforged" },
"title": "Encounters"
},
"Setting Truths": {
"type": "array",
"items": { "$ref": "#/definitions/ISettingTruth" },
"title": "Setting Truths"
},
"$schema": { "type": "string", "title": "$schema" },
"Asset Types": {
"type": "array",
"items": { "$ref": "#/definitions/IAssetType" },
"title": "Asset Types"
},
"Move Categories": {
"type": "array",
"items": { "$ref": "#/definitions/IMoveCategory" },
"title": "Move Categories"
},
"Oracle Categories": {
"type": "array",
"items": { "$ref": "#/definitions/IOracleCategory" },
"title": "Oracle Categories"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": [
"Asset Types",
"Encounters",
"Move Categories",
"Oracle Categories",
"Setting Truths"
],
"definitions": {
"IEncounterStarforged": {
"description": "Represents an *Ironsworn: Starforged* Encounter entry.",
"title": "IEncounterStarforged",
"type": "object",
"properties": {
"$id": {
"description": "The item's unique string ID.",
"pattern": "^Starforged/Encounters/[A-z_-]+$",
"type": "string",
"title": "$id"
},
"Nature": {
"$ref": "#/definitions/EncounterNatureStarforged",
"title": "Nature"
},
"Summary": {
"description": "A user-facing markdown summary of the item. `Summary` is shorter than{@linkIHasDescription| Description}.",
"type": "string",
"title": "Summary"
},
"Variants": {
"type": "array",
"items": { "$ref": "#/definitions/IEncounterVariant" },
"title": "Variants"
},
"Features": {
"type": "array",
"items": { "type": "string" },
"title": "Features"
},
"Drives": {
"type": "array",
"items": { "type": "string" },
"title": "Drives"
},
"Tactics": {
"type": "array",
"items": { "type": "string" },
"title": "Tactics"
},
"Quest Starter": {
"description": "A markdown string describing the quest starter associated with this item.",
"type": "string",
"title": "Quest Starter"
},
"Your Truth": {
"description": "A markdown string representing the text of the \"Your Truth\" callout box included with some *Ironsworn* encounters.",
"type": "string",
"title": "Your Truth"
},
"Name": {
"description": "The item's internal name. Should be unique among its sibling elements, as this key is often used (along with the object's ancestors) to generate its $id.\n\nIf the item has Display.Title, that should be preferred for most user-facing labels.",
"type": "string",
"title": "Name"
},
"Display": {
"$ref": "#/definitions/IDisplayWithTitle",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
},
"Tags": {
"description": "Arbitrary strings tags that describe optional metadata that doesn't fit in other properties.",
"type": "array",
"items": { "type": "string", "enum": ["vehicle"] },
"title": "Tags"
},
"Rank": { "$ref": "#/definitions/ChallengeRank", "title": "Rank" },
"Description": {
"description": "A user-facing markdown description of the item, consisting of one or more paragraphs.",
"type": "string",
"title": "Description"
},
"Source": {
"$ref": "#/definitions/ISource",
"description": "Information on this item's source.",
"title": "Source"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": [
"$id",
"Description",
"Display",
"Drives",
"Features",
"Name",
"Nature",
"Quest Starter",
"Rank",
"Source",
"Summary",
"Tactics",
"Variants"
]
},
"EncounterNatureStarforged": {
"title": "EncounterNatureStarforged",
"enum": ["Creature", "Horror", "Human", "Machine", "Monster"],
"type": "string"
},
"IEncounterVariant": {
"description": "Represents a variant encounter 'stubs' included with a parent encounter in *Ironsworn: Starforged*.",
"title": "IEncounterVariant",
"type": "object",
"properties": {
"$id": {
"description": "The item's unique string ID.",
"pattern": "^Starforged/Encounters/[A-z_-]+/[A-z_-]+$",
"type": "string",
"title": "$id"
},
"Variant of": { "type": "string", "title": "Variant of" },
"Name": {
"description": "The item's internal name. Should be unique among its sibling elements, as this key is often used (along with the object's ancestors) to generate its $id.\n\nIf the item has Display.Title, that should be preferred for most user-facing labels.",
"type": "string",
"title": "Name"
},
"Display": {
"$ref": "#/definitions/IDisplayWithTitle",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
},
"Source": {
"$ref": "#/definitions/ISource",
"description": "Information on this item's source.",
"title": "Source"
},
"Tags": {
"description": "Arbitrary strings tags that describe optional metadata that doesn't fit in other properties.",
"type": "array",
"items": { "type": "string", "enum": ["vehicle"] },
"title": "Tags"
},
"Nature": {
"$ref": "#/definitions/EncounterNatureStarforged",
"title": "Nature"
},
"Rank": { "$ref": "#/definitions/ChallengeRank", "title": "Rank" },
"Description": {
"description": "A user-facing markdown description of the item, consisting of one or more paragraphs.",
"type": "string",
"title": "Description"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": [
"$id",
"Description",
"Display",
"Name",
"Nature",
"Rank",
"Source",
"Variant of"
]
},
"IDisplayWithTitle": {
"title": "IDisplayWithTitle",
"type": "object",
"properties": {
"Title": {
"description": "The title of this item as it appears printed in the rulebook. Intended for use as the item's header, label, etc.",
"type": "string",
"title": "Title"
},
"Icon": {
"description": "A URL pointing to a single SVG icon.",
"pattern": "^\\.\\./\\.\\./img/vector/[A-z-_0-9/]+\\.svg$",
"type": "string",
"title": "Icon"
},
"Images": {
"description": "An array of URLs pointing to one or more WEBP images.",
"pattern": "^\\.\\./\\.\\./img/raster/[A-z-_0-9/]+\\.webp$",
"type": "array",
"items": { "type": "string" },
"title": "Images"
},
"Color": {
"description": "A hex color associated with this item, for use as e.g. an accent color in its display.",
"pattern": "^#[A-f0-9][A-f0-9][A-f0-9][A-f0-9][A-f0-9][A-f0-9]$",
"type": "string",
"title": "Color"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Title"]
},
"ISource": {
"description": "Interface representing data on this item's source. For 'canonical' content, this is usually a book with numbered pages, but it might also be a link to a web site.",
"title": "ISource",
"type": "object",
"properties": {
"Title": {
"description": "The title of the source.\n\nFor 'canonical' content, use one of the enumerated `SourceTitle` strings.\n\nFor 3rd-party content (including homebrew) that's been released as part of a titled document, use the title of that document (e.g. \"Steelforged\", \"Ironsmith\").\n\nIf the source has no particular title (for instance, it's a single custom element in a VTT implementation), use \"Custom\".",
"type": "string",
"title": "Title"
},
"Authors": {
"description": "The author(s) of this item. For 'canonical' content, this one's usually pretty obvious 😉 However, it's included so that homebrew content can use the same interface/schema.",
"default": ["Shawn Tomkin"],
"type": "array",
"items": { "type": "string" },
"title": "Authors"
},
"Date": {
"description": "The 6-number date string formatted as `MMDDYY`. Relevant only during Starforged development; it will be deprecated once the game is released.",
"pattern": "^(0[1-9]|1[0-2])([0-2][1-9]|3[0-1])([0-9][0-9])$",
"type": "string",
"title": "Date"
},
"Page": {
"description": "The page on which the item appears most prominently in the source material (if it's in a format that uses page numbers).",
"type": "integer",
"title": "Page"
},
"Url": {
"description": "The URL where the source material is available.",
"pattern": "^https?://.*$",
"type": "string",
"title": "Url"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Authors", "Title"]
},
"ChallengeRank": {
"description": "Enumerates challenge ranks.",
"title": "ChallengeRank",
"enum": [1, 2, 3, 4, 5],
"type": "number"
},
"ISettingTruth": {
"description": "Interface for Setting Truth categories such as \"Exodus\" and \"Cataclysm\". See page XX of Starforged for further information.",
"title": "ISettingTruth",
"type": "object",
"properties": {
"$id": {
"description": "The item's unique string ID.",
"pattern": "^(Starforged|Ironsworn)/Setting_Truths/[A-z_-]+$",
"type": "string",
"title": "$id"
},
"Name": {
"description": "The item's internal name. Should be unique among its sibling elements, as this key is often used (along with the object's ancestors) to generate its $id.\n\nIf the item has Display.Title, that should be preferred for most user-facing labels.",
"type": "string",
"title": "Name"
},
"Table": {
"description": "The 'canonical' options for this setting truth category.",
"type": "array",
"items": { "$ref": "#/definitions/ISettingTruthOption" },
"title": "Table"
},
"Character": {
"description": "A Markdown version of the text that appears at the end of each Truth entry; it offers suggestions on the character's assets and background.",
"type": "string",
"title": "Character"
},
"Display": {
"$ref": "#/definitions/IDisplayWithTitle",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
},
"Source": {
"$ref": "#/definitions/ISource",
"description": "Information on this item's source.",
"title": "Source"
},
"Suggestions": {
"$ref": "#/definitions/ISuggestions",
"description": "\"Non-canonical\" suggestions of related items. They might be convenient to present to the user, but in most implementations rolling them automatically is not recommended.",
"title": "Suggestions"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["$id", "Character", "Display", "Name", "Source", "Table"]
},
"ISettingTruthOption": {
"description": "Interface for 'canonical' options within a SettingTruth category.",
"title": "ISettingTruthOption",
"type": "object",
"properties": {
"$id": {
"description": "The ID of this row.",
"pattern": "^(Starforged|Ironsworn)/Setting_Truths/[A-z_-]+/(1-33|34-67|68-100|[1-3])$",
"type": "string",
"title": "$id"
},
"Roll template": {
"description": "Describes the string values of this item that should be replaced with template strings and filled with the results of one or more oracle rolls.",
"$ref": "#/definitions/IRollTemplate",
"title": "Roll template"
},
"Subtable": {
"description": "A table to be rolled when this row is selected. If this row references an external oracle, the `Oracles` property is used instead.",
"type": "array",
"items": { "$ref": "#/definitions/IRow" },
"title": "Subtable"
},
"Floor": {
"anyOf": [
{
"description": "The low end of the dice range for this row.",
"minimum": 1,
"maximum": 100,
"type": ["null", "integer"]
},
{ "type": "null" }
],
"title": "Floor"
},
"Ceiling": {
"anyOf": [
{
"description": "The high end of the dice range for this row.",
"minimum": 1,
"maximum": 100,
"type": ["null", "integer"]
},
{ "type": "null" }
],
"title": "Ceiling"
},
"Result": {
"description": "The primary result text for the row, annotated in Markdown.\nIn the book, this is frequently the only column aside from the roll column. Otherwise, it is the first column.\nSome tables label this column as something other than Result; see the parent (or grandparent) Oracle.Display for more information.",
"type": "string",
"title": "Result"
},
"Summary": {
"description": "A secondary markdown string that must be presented to the user for the implementation to be complete, but may benefit from progressive disclosure (such as a collapsible element, popover/tooltip, etc).\n\nGenerally, `Summary` is longer than `Result`.\n\nSome tables label this column as something other than `Result`; see the parent (or grandparent) `IOracle.Display.Table` for more information.\n\n`null` is used in cases where an 'empty' `Summary` exists (example: Starship Type, p. 326). In the book, these table cells are rendered with the text `--` (and this is the recommended placeholder for tabular display). For display as a single result (e.g. VTT table roll output), however, `null` values can be safely omitted.",
"type": ["null", "string"],
"title": "Summary"
},
"Oracle rolls": {
"description": "Additional oracle tables that should be rolled when this row is selected.",
"type": "array",
"items": { "type": "string" },
"title": "Oracle rolls"
},
"Multiple rolls": {
"description": "Data for rows that call for multiple rolls, e.g. on `Roll twice` results.",
"$ref": "#/definitions/IMultipleRolls",
"title": "Multiple rolls"
},
"Attributes": {
"description": "The attributes set by this row.",
"type": "array",
"items": { "$ref": "#/definitions/IAttribute" },
"title": "Attributes"
},
"Suggestions": {
"$ref": "#/definitions/ISuggestions",
"description": "\"Non-canonical\" suggestions of related items. They might be convenient to present to the user, but in most implementations rolling them automatically is not recommended.",
"title": "Suggestions"
},
"Content": {
"$ref": "#/definitions/IOracleContent",
"description": "Metadata that describes an oracle's semantic or lexical content.",
"title": "Content"
},
"Game objects": {
"description": "Any game objects that are explicitly pointed to by the original text. For most implementations, it is *not* recommended to generate them automatically - see \"Peeling the Onion\", p. 293.",
"type": "array",
"items": { "$ref": "#/definitions/IGameObject" },
"title": "Game objects"
},
"Display": {
"$ref": "#/definitions/IDisplay",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
},
"Quest Starter": {
"description": "A markdown string describing the quest starter associated with this item.",
"type": "string",
"title": "Quest Starter"
},
"Description": {
"description": "A user-facing markdown description of the item, consisting of one or more paragraphs.",
"type": "string",
"title": "Description"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": [
"$id",
"Ceiling",
"Description",
"Floor",
"Quest Starter",
"Result"
]
},
"IRollTemplate": {
"description": "Describes the string keys of this item that should be replaced with template strings and filled with the results of one or more oracles.",
"title": "IRollTemplate",
"type": "object",
"properties": {
"Result": {
"description": "A template string for the parent's `Result` property, to be filled with an oracle table roll Result.",
"type": "string",
"title": "Result"
},
"Summary": {
"description": "A template string for the parent's `Summary` property, to be filled with an oracle table roll Result.",
"type": "string",
"title": "Summary"
},
"Description": {
"description": "A template string for the parent's `Description` property, to be filled with an oracle table roll Result.",
"type": "string",
"title": "Description"
}
},
"defaultProperties": [],
"additionalProperties": false
},
"IRow": {
"description": "Interface representing a single row in an oracle table.",
"title": "IRow",
"type": "object",
"properties": {
"$id": {
"anyOf": [
{
"description": "The ID of this row.",
"pattern": "^(Ironsworn|Starforged)/Oracles(/[A-z_-]+)+/[1-9][0-9]*(-[1-9][0-9]*)?(/Subtable/[1-9][0-9]*(-[1-9][0-9]*)?)?$",
"type": ["null", "string"]
},
{ "type": "null" }
],
"title": "$id"
},
"Floor": {
"anyOf": [
{
"description": "The low end of the dice range for this row.",
"minimum": 1,
"maximum": 100,
"type": ["null", "integer"]
},
{ "type": "null" }
],
"title": "Floor"
},
"Ceiling": {
"anyOf": [
{
"description": "The high end of the dice range for this row.",
"minimum": 1,
"maximum": 100,
"type": ["null", "integer"]
},
{ "type": "null" }
],
"title": "Ceiling"
},
"Result": {
"description": "The primary result text for the row, annotated in Markdown.\nIn the book, this is frequently the only column aside from the roll column. Otherwise, it is the first column.\nSome tables label this column as something other than Result; see the parent (or grandparent) Oracle.Display for more information.",
"type": "string",
"title": "Result"
},
"Summary": {
"description": "A secondary markdown string that must be presented to the user for the implementation to be complete, but may benefit from progressive disclosure (such as a collapsible element, popover/tooltip, etc).\n\nGenerally, `Summary` is longer than `Result`.\n\nSome tables label this column as something other than `Result`; see the parent (or grandparent) `IOracle.Display.Table` for more information.\n\n`null` is used in cases where an 'empty' `Summary` exists (example: Starship Type, p. 326). In the book, these table cells are rendered with the text `--` (and this is the recommended placeholder for tabular display). For display as a single result (e.g. VTT table roll output), however, `null` values can be safely omitted.",
"type": ["null", "string"],
"title": "Summary"
},
"Oracle rolls": {
"description": "Additional oracle tables that should be rolled when this row is selected.",
"type": "array",
"items": { "type": "string" },
"title": "Oracle rolls"
},
"Subtable": {
"description": "A table to be rolled when this row is selected. If this row references an external oracle, the `Oracles` property is used instead.",
"type": "array",
"items": { "$ref": "#/definitions/IRow" },
"title": "Subtable"
},
"Multiple rolls": {
"description": "Data for rows that call for multiple rolls, e.g. on `Roll twice` results.",
"$ref": "#/definitions/IMultipleRolls",
"title": "Multiple rolls"
},
"Attributes": {
"description": "The attributes set by this row.",
"type": "array",
"items": { "$ref": "#/definitions/IAttribute" },
"title": "Attributes"
},
"Roll template": {
"$ref": "#/definitions/IRollTemplate_1",
"description": "Describes the string values of this item that should be replaced with template strings and filled with the results of one or more oracle rolls.",
"title": "Roll template"
},
"Suggestions": {
"$ref": "#/definitions/ISuggestions",
"description": "\"Non-canonical\" suggestions of related items. They might be convenient to present to the user, but in most implementations rolling them automatically is not recommended.",
"title": "Suggestions"
},
"Content": {
"$ref": "#/definitions/IOracleContent",
"description": "Metadata that describes an oracle's semantic or lexical content.",
"title": "Content"
},
"Game objects": {
"description": "Any game objects that are explicitly pointed to by the original text. For most implementations, it is *not* recommended to generate them automatically - see \"Peeling the Onion\", p. 293.",
"type": "array",
"items": { "$ref": "#/definitions/IGameObject" },
"title": "Game objects"
},
"Display": {
"$ref": "#/definitions/IDisplay",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Ceiling", "Floor", "Result"]
},
"IMultipleRolls": {
"description": "Describes{@linkIRow}results that call for multiple rolls, most commonly \"Roll twice\" results.",
"title": "IMultipleRolls",
"type": "object",
"properties": {
"Amount": {
"description": "The number of rolls to make on the parent oracle table.",
"type": "integer",
"title": "Amount"
},
"Allow duplicates": {
"description": "Whether to allow duplicate results when generating multiple rolls.\n\nImplicitly required by `Make it worse`.",
"type": "boolean",
"title": "Allow duplicates"
},
"Make it worse": {
"description": "Whether duplicate rolls should be compounded in an Ironsworn-style \"Make it worse\" results.\n\nTypically this is accompanied by `IRow.Result` text like \"Roll twice more on this table. Both results occur. If they are the same result, make it worse.\"\n\nCan safely be ignored in Starforged-only implementations. Implicitly requires `Allow duplicates`.",
"type": "boolean",
"title": "Make it worse"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Allow duplicates", "Amount", "Make it worse"]
},
"IAttribute": {
"description": "Describes an attribute key/value pair, set by an oracle row. The key-value pair should be set on any game object for which that row is generated.\n\nAttributes exist to describe prerequisites that might be fulfilled by more than one table, that don't exist on tables at all, or that a generated game object might want to 'force' as one of it's roll results.\n\nSee documentation for a list of available values.",
"title": "IAttribute",
"type": "object",
"properties": {
"Key": { "$ref": "#/definitions/AttributeKey", "title": "Key" },
"Value": { "type": "string", "title": "Value" }
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Key"]
},
"AttributeKey": {
"title": "AttributeKey",
"enum": [
"Atmosphere",
"Authority",
"Creature Scale",
"Derelict Type",
"Disposition",
"Dominion",
"Encountered Behavior",
"Environment",
"Faction Type",
"Fringe Group",
"Guild",
"Influence",
"Initial Contact",
"Leadership",
"Life",
"Location",
"Location Theme",
"Planetary Class",
"Population",
"Region",
"Role",
"Zone"
],
"type": "string"
},
"IRollTemplate_1": {
"description": "Describes the string keys of this item that should be replaced with template strings and filled with the results of one or more oracles.",
"title": "IRollTemplate_1",
"$ref": "#/definitions/IRollTemplate"
},
"ISuggestions": {
"description": "Describes \"non-canonical\" suggestions for game content related to the parent item.\n\nThese are intended be offered as convenient shortcuts for the user (for instance, including a menu dropdown for rolling on suggested tables); having them roll automatically is **not recommended** for most projects.\n\nThese can be safely ignored if that functionality is not desired.",
"title": "ISuggestions",
"$ref": "#/definitions/ISuggestions_1"
},
"ISuggestions_1": {
"description": "Describes \"non-canonical\" suggestions for game content related to the parent item.\n\nThese are intended be offered as convenient shortcuts for the user (for instance, including a menu dropdown for rolling on suggested tables); having them roll automatically is **not recommended** for most projects.\n\nThese can be safely ignored if that functionality is not desired.",
"title": "ISuggestions_1",
"type": "object",
"properties": {
"Game objects": {
"description": "Suggested game objects and their parameters.",
"type": "array",
"items": { "$ref": "#/definitions/IGameObject" },
"title": "Game objects"
},
"Oracle rolls": {
"description": "Suggested oracle rolls, by table ID. Multiples of the same ID can be used to indicate that multiple rolls should be made.",
"type": "array",
"items": { "type": "string" },
"title": "Oracle rolls"
},
"Moves": {
"description": "Suggested move IDs.",
"type": "array",
"items": { "type": "string" },
"title": "Moves"
},
"Assets": {
"description": "Suggested asset IDs.",
"type": "array",
"items": { "type": "string" },
"title": "Assets"
},
"Encounters": {
"description": "Suggested encounter IDs.",
"type": "array",
"items": { "type": "string" },
"title": "Encounters"
}
},
"defaultProperties": [],
"additionalProperties": false
},
"IGameObject": {
"description": "Describes a game object, with optional required parameters (for example, a specific Location result).",
"title": "IGameObject",
"type": "object",
"properties": {
"Object type": {
"$ref": "#/definitions/GameObjectType",
"title": "Object type"
},
"Requires": {
"$ref": "#/definitions/IRequirements",
"title": "Requires"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Object type"]
},
"GameObjectType": {
"title": "GameObjectType",
"enum": [
"Character",
"Creature",
"Derelict",
"Derelict Zone",
"Faction",
"Planet",
"Precursor Vault",
"Settlement",
"Starship"
],
"type": "string"
},
"IRequirements": {
"description": "Data describing an item's requirements.",
"title": "IRequirements",
"type": "object",
"properties": {
"Attributes": {
"description": "A list of attribute keys, and values of those keys that satisfy the requirements.",
"type": "array",
"items": { "$ref": "#/definitions/IAttributeChoices" },
"title": "Attributes"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Attributes"]
},
"IAttributeChoices": {
"title": "IAttributeChoices",
"type": "object",
"properties": {
"Key": { "$ref": "#/definitions/AttributeKey", "title": "Key" },
"Values": {
"type": "array",
"items": { "type": "string" },
"title": "Values"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": ["Key"]
},
"IOracleContent": {
"description": "Interface for metadata that describes an oracle's semantic or lexical content.",
"title": "IOracleContent",
"$ref": "#/definitions/IOracleContent_1"
},
"IOracleContent_1": {
"description": "Interface for metadata that describes an oracle's semantic or lexical content.",
"title": "IOracleContent_1",
"type": "object",
"properties": {
"Part of speech": {
"description": "The part of speech of this oracle.",
"type": "array",
"items": {
"enum": [
"adjective",
"common noun",
"compound noun",
"fragment",
"name",
"noun",
"plural",
"possessive case",
"proper noun",
"proper noun fragment",
"sentences",
"verb"
],
"type": "string"
},
"title": "Part of speech"
},
"Tags": {
"description": "Any arbitrary string tags associated with this oracle.",
"type": "array",
"items": { "type": "string" },
"title": "Tags"
}
},
"defaultProperties": [],
"additionalProperties": false
},
"IDisplay": {
"description": "Interface for data relevant to an item's display/rendering.",
"title": "IDisplay",
"$ref": "#/definitions/IDisplay_1"
},
"IDisplay_1": {
"description": "Interface for data relevant to an item's display/rendering.",
"title": "IDisplay_1",
"type": "object",
"properties": {
"Icon": {
"description": "A URL pointing to a single SVG icon.",
"pattern": "^\\.\\./\\.\\./img/vector/[A-z-_0-9/]+\\.svg$",
"type": "string",
"title": "Icon"
},
"Images": {
"description": "An array of URLs pointing to one or more WEBP images.",
"pattern": "^\\.\\./\\.\\./img/raster/[A-z-_0-9/]+\\.webp$",
"type": "array",
"items": { "type": "string" },
"title": "Images"
},
"Color": {
"description": "A hex color associated with this item, for use as e.g. an accent color in its display.",
"pattern": "^#[A-f0-9][A-f0-9][A-f0-9][A-f0-9][A-f0-9][A-f0-9]$",
"type": "string",
"title": "Color"
},
"Title": {
"description": "The title of this item as it appears printed in the rulebook. Intended for use as the item's header, label, etc.",
"type": "string",
"title": "Title"
}
},
"defaultProperties": [],
"additionalProperties": false
},
"IAssetType": {
"description": "Represents an Asset Type such as Command Vehicle, Companion, or Path, and serves as a container for all assets of that type.",
"title": "IAssetType",
"type": "object",
"properties": {
"$id": {
"description": "The item's unique string ID.",
"pattern": "^(Starforged|Ironsworn)/Assets/[A-z_-]+$",
"type": "string",
"title": "$id"
},
"Assets": {
"description": "The assets that belong to this asset type.",
"type": "array",
"items": { "$ref": "#/definitions/IAsset" },
"title": "Assets"
},
"Name": {
"description": "The item's internal name. Should be unique among its sibling elements, as this key is often used (along with the object's ancestors) to generate its $id.\n\nIf the item has Display.Title, that should be preferred for most user-facing labels.",
"type": "string",
"title": "Name"
},
"Display": {
"$ref": "#/definitions/IDisplayWithTitle",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
},
"Usage": { "$ref": "#/definitions/IAssetUsage", "title": "Usage" },
"Description": {
"description": "A user-facing markdown description of the item, consisting of one or more paragraphs.",
"type": "string",
"title": "Description"
},
"Source": {
"$ref": "#/definitions/ISource",
"description": "Information on this item's source.",
"title": "Source"
},
"Aliases": {
"description": "Alternate names for this item, including: names it had earlier in development that have since changed, alternate spellings/punctuation, common misspellings, and so on.",
"type": "array",
"items": { "type": "string" },
"title": "Aliases"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": [
"$id",
"Assets",
"Description",
"Display",
"Name",
"Source",
"Usage"
]
},
"IAsset": {
"description": "An interface representing an *Ironsworn: Starforged* asset card.",
"title": "IAsset",
"type": "object",
"properties": {
"$id": {
"description": "The item's unique string ID.",
"pattern": "^(Starforged|Ironsworn)/Assets/[A-z_-]+/[A-z_-]+$",
"type": "string",
"title": "$id"
},
"Name": {
"description": "The asset's name - the title printed on the card.",
"type": "string",
"title": "Name"
},
"Display": {
"$ref": "#/definitions/IDisplayWithTitle",
"description": "Data relevant to this item's display/rendering.",
"title": "Display"
},
"States": {
"description": "Describes any states that the asset might have, such as \"Broken\". Some states may disable the asset entirely.",
"type": "array",
"items": { "$ref": "#/definitions/IAssetState" },
"title": "States"
},
"Asset Type": {
"description": "The ID of the asset's parent AssetType",
"type": "string",
"title": "Asset Type"
},
"Usage": {
"$ref": "#/definitions/IAssetUsage",
"description": "Information on the asset's usage, such as whether its abilities are shared amongst the player characters.",
"title": "Usage"
},
"Attachments": {
"description": "Details on what attachments (other assets) are accepted by this asset.",
"$ref": "#/definitions/IAssetAttachment",
"title": "Attachments"
},
"Inputs": {
"description": "Data describing the Input controls that should be embedded in the card. Inputs embedded in specific asset abilities appear as keys of the corresponding ability object, instead.",
"type": "array",
"items": {
"anyOf": [
{ "$ref": "#/definitions/IInputSelect" },
{ "$ref": "#/definitions/IInputText" }
]
},
"title": "Inputs"
},
"Requirement": {
"description": "An optional markdown string representing the requirement text that appears at the top of some asset cards.",
"type": "string",
"title": "Requirement"
},
"Abilities": {
"description": "The asset's abilities.",
"type": "array",
"items": [
{ "$ref": "#/definitions/IAssetAbility" },
{ "$ref": "#/definitions/IAssetAbility" },
{ "$ref": "#/definitions/IAssetAbility" }
],
"minItems": 3,
"maxItems": 3,
"title": "Abilities"
},
"Condition Meter": {
"description": "Information on this asset's condition meter, if any.",
"$ref": "#/definitions/IConditionMeter",
"title": "Condition Meter"
},
"Tags": {
"type": "array",
"items": { "type": "string" },
"title": "Tags"
},
"Source": {
"$ref": "#/definitions/ISource",
"description": "Information on this item's source.",
"title": "Source"
},
"Aliases": {
"description": "Alternate names for this item, including: names it had earlier in development that have since changed, alternate spellings/punctuation, common misspellings, and so on.",
"type": "array",
"items": { "type": "string" },
"title": "Aliases"
}
},
"defaultProperties": [],
"additionalProperties": false,
"required": [
"$id",
"Abilities",
"Asset Type",
"Display",
"Name",
"Source",
"Usage"
]
},
"IAssetState": {
"description": "Describes a possible state for an asset, like the \"Broken\" status for certain assets (mainly Modules in *Starforged*).\n\nStates are frequently toggled on and off by players; for real-world gameplay, this is generally represented by flipping the card over. A checkbox or other on/off toggle might serve the same function in a digital implementation.",
"title": "IAssetState",
"type": "object",
"properties": {
"Name": {
"description": "A string label name or label for the state.",
"type": "string",
"title": "Name"
},
"Enabled": {
"description": "Whether this state is currently enabled.",
"type": "boolean",