-
Notifications
You must be signed in to change notification settings - Fork 20
/
wcag-schema.json
198 lines (198 loc) · 8.31 KB
/
wcag-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
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"description": "A JSON representation of WCAG 2.0",
"properties": {
"type": "object",
"properties": {
"required": [
"ref_id",
"title",
"url",
"description",
"guidelines"
],
"ref_id": {
"type": "string",
"description": "Unique numeric identifier for the Principle",
"enum": [
"1",
"2",
"3",
"4"
]
},
"title": {
"type": "string",
"description": "Title for the Principle",
"enum": [
"Perceivable",
"Operable",
"Understandable",
"Robust"
]
},
"url": {
"type": "string",
"description": "Fully-qualified URI at which you can find information about this Principle"
},
"description": {
"type": "string",
"description": "Text description of the Principle"
},
"guidelines": {
"type": "array",
"description": "Array of guidelines which apply to the specific principle",
"properties": {
"required": [
"ref_id",
"title",
"url",
"description",
"references",
"success_criteria"
],
"ref_id": {
"type": "string",
"description": "Unique identifier for the Guideline",
"enum": [
"1.1",
"1.2",
"1.3",
"1.4",
"2.1",
"2.2",
"2.3",
"2.4",
"3.1",
"3.2",
"3.3",
"4.1"
]
},
"title": {
"type": "string",
"description": "Title for the Guideline"
},
"url": {
"type": "string",
"description": "Fully-qualified URI at which you can find information about this Guideline"
},
"description": {
"type": "string",
"description": "Text description of this guideline"
},
"references": {
"type": "array",
"description": "Array of objects for each reference applicable to this Guideline",
"properties": {
"title": {
"type": "string",
"description": "Name or title for the external reference"
},
"url": {
"type": "string",
"description": "Fully qualified URL at which the reference information exists."
}
},
"required": [
"title",
"url"
]
},
"success_criteria": {
"type": "array",
"description": "Title for the Success Criteria",
"properties": {
"required": [
"ref_id",
"title",
"description",
"url",
"level",
"references"
],
"ref_id": {
"type": "string",
"description": "Unique identifier for the Success Criteria"
},
"title": {
"type": "string",
"description": "High level title for the Success Criteria"
},
"description": {
"type": "string",
"description": "Full text (minus title) for the Success Criteria"
},
"url": {
"type": "string",
"description": "Fully-qualified URI at which you can find information about this Success Criteria"
},
"level": {
"type": "string",
"description": "Indicates the appropriate conformance level for this success criteria",
"enum": [
"A",
"AA",
"AAA"
]
},
"references": {
"type": "array",
"description": "Array of references relating to this success criteria",
"properties": {
"required": [
"title",
"url"
],
"title": {
"type": "string",
"description": "Name or title of the external reference resource"
},
"url": {
"type": "string",
"description": "Fully qualified URL at which the reference information exists."
}
}
},
"notes": {
"type": "array",
"description": "Any additional notes applicable to the Success Criteria",
"properties": {
"content": {
"type": "string",
"description": "Full text of the note(s)"
}
}
},
"special_cases": {
"type": "array",
"properties": {
"type": "string",
"required": [
"title"
],
"title": {
"type": "string",
"description": "Title for the special case"
},
"description": {
"type": "string",
"description": "Full text of the description"
},
"enum": [
null,
"exception",
"all_true",
"at_least_one"
]
}
}
}
}
}
}
}
}
}