-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathschema.json
128 lines (128 loc) · 4.88 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
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://github.com/elistevens/xws-spec/blob/master/schema.json",
"title": "X-Wing Squadron Format Schema Version 2.0.0",
"description": "A squadron for the X-Wing Miniatures Game in app-independent format for sharing, saving and moving between apps.",
"type": "object",
"required": ["faction","pilots", "version"],
"additionalProperties" : false,
"properties": {
"version": {
"type": "string",
"pattern" : "^[0-9]+\\.[0-9]+\\.[0-9]+$",
"description": "The version of the XWS spec used to create this data"
},
"name": {
"type": "string",
"description": "The name of the squadron."
},
"points": {
"type": "integer",
"description": "The total points spent creating this squadron."
},
"faction": {
"type": "string",
"enum": [ "rebelalliance",
"galacticempire",
"scumandvillainy",
"resistance",
"firstorder",
"galacticrepublic",
"separatistalliance"
],
"description": "The faction this squadron belongs to."
},
"description": {
"type": "string",
"description": "A description of this squadron."
},
"obstacles": {
"type": "array",
"description": "Array of three Strings, each being an identifier for the obstacle chosen for tournament use.",
"maxItems": 3,
"minItems": 3,
"items": {
"type": "string"
}
},
"pilots": {
"type": "array",
"description": "The members of this squadron.",
"items": {
"type": "object",
"minItems": 1,
"required": ["id"],
"additionalProperties" : false,
"properties": {
"id": {
"type": "string",
"pattern" : "^[0-9a-z-]+[^-]$"
},
"points": {
"type": "integer",
"descrpition": "Total point cost of the pilot plus upgrades. SHOULD be ignored by importing applications unless the XWS source is trusted."
},
"upgrades": {
"type": "object",
"patternProperties": {
"^[0-9a-z]+$": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"pattern" : "^[0-9a-z]+$"
}
}
}
},
"vendor": {
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"description": "An extensible object containing app-specific data. Developers should put extra data here under their own namespace.",
"patternProperties": {
"^.*$": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"builder_url": {
"type": "string"
},
"builder": {
"type": "string"
},
"additionalProperties": true
}
}
}
}
}
}
},
"vendor": {
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"description": "An extensible object containing app-specific data. Developers should put extra data here under their own namespace.",
"patternProperties": {
"^.*$": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"builder_url": {
"type": "string"
},
"builder": {
"type": "string"
},
"additionalProperties": true
}
}
}
}
}
}