-
Notifications
You must be signed in to change notification settings - Fork 39
/
w3c.json-schema.json
112 lines (112 loc) · 2.59 KB
/
w3c.json-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
{
"$id": "https://w3c.github.io/w3cjson-schema.json",
"$schema": "http://json-schema.org/schema#",
"description": "A representation of the W3C settings for the GitHub repository",
"type": "object",
"properties": {
"group": {
"anyOf": [
{
"$ref": "#/$defs/groupName"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/groupName"
},
"minItems": 1,
"uniqueItems": true
}
]
},
"repo-type": {
"anyOf": [
{
"$ref": "#/$defs/repoTypes"
},
{
"type": [
"array"
],
"uniqueItems": true,
"items": {
"$ref": "#/$defs/repoTypes"
},
"minItems": 1
}
]
},
"shortname": {
"anyOf": [
{
"$ref": "#/$defs/shortnameType"
},
{
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/$defs/shortnameType"
},
"minItems": 1
}
],
"description": "An array of W3C shortnames/series, associating this repository with /TR."
},
"contacts": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
},
"minItems": 1
}
],
"description": "An array of people who are considered points of contact for the repository for administrative requests."
},
"policy": {
"enum": [
"open",
"restricted"
],
"description": " If set to open, any W3C Team member should feel empowered to help with the management of this given repository."
},
"exposed": {
"type": "boolean",
"description": " If set to true, the repository will be exposed on https://www.w3.org/groups/ pages."
}
},
"$defs": {
"groupName": {
"type": "string",
"pattern": "(wg|ig|cg|bg|tf|other)/[^/]+",
"description": "The prefixed shortname of a group, per https://api.w3.org/groups/{groupName}"
},
"repoTypes": {
"enum": [
"rec-track",
"note",
"registry",
"cg-report",
"tests",
"process",
"workshop",
"homepage",
"translation",
"article",
"tool",
"project",
"others"
],
"description": "identify the type and purpose of a repository."
},
"shortnameType": {
"type": "string",
"pattern": "\\w+(-\\w+)*"
}
}
}