-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathmaintainer.schema.json
More file actions
252 lines (252 loc) · 7.1 KB
/
maintainer.schema.json
File metadata and controls
252 lines (252 loc) · 7.1 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://forklore.org/maintainer.schema.json",
"title": "Maintainer",
"description": "Schema for validating maintainer JSON files",
"type": "object",
"required": ["username", "full_name", "photo", "socials", "projects", "form", "created_on"],
"additionalProperties": false,
"properties": {
"username": {
"type": "string",
"description": "Unique identifier for the maintainer",
"minLength": 4,
"pattern": "^[a-zA-Z0-9_-]+$"
},
"full_name": {
"type": "string",
"description": "Full name of the maintainer",
"minLength": 4
},
"photo": {
"type": "string",
"description": "URL to the maintainer's photo",
"format": "uri",
"pattern": "^(https?://.+|/images/.+)\\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$"
},
"designation": {
"type": "string",
"description": "Job title or role description",
"minLength": 5
},
"socials": {
"type": "array",
"description": "List of social media links",
"minItems": 1,
"items": {
"type": "object",
"required": ["label", "link"],
"additionalProperties": false,
"properties": {
"label": {
"type": "string",
"description": "Social media platform name",
"enum": [
"GitHub",
"GitLab",
"Gitlab",
"Codeberg",
"BitBucket",
"LinkedIn", "Linkedin",
"X",
"Twitter",
"Mastodon",
"Bluesky",
"Substack",
"Discourse",
"Email",
"RSS",
"Web", "Website", "Blog",
"Reddit"
]
},
"link": {
"type": "string",
"description": "URL to the social media profile",
"format": "uri",
"pattern": "^https?://.+"
}
}
}
},
"projects": {
"type": "array",
"description": "List of projects maintained",
"minItems": 1,
"items": {
"type": "object",
"required": ["name", "project_link", "website_link", "logo", "description", "short_description"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Name of the project",
"minLength": 4
},
"project_link": {
"type": "string",
"description": "URL to the project repository",
"format": "uri",
"pattern": "^https?://.+"
},
"website_link": {
"type": "string",
"description": "URL to the project website",
"format": "uri",
"pattern": "^https?://.+"
},
"logo": {
"type": "string",
"description": "URL to the project logo",
"format": "uri",
"pattern": "^(https?://.+|/images/.+)\\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$"
},
"description": {
"type": "string",
"description": "Full description of the project",
"minLength": 20
},
"short_description": {
"type": "string",
"description": "Short description used in cards and meta",
"minLength": 10,
"maxLength": 200
}
}
}
},
"form": {
"type": "array",
"description": "Q&A form responses with exact questions",
"minItems": 8,
"maxItems": 8,
"items": [
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "How to support"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "A small brief about your project"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "One FOSS maintainer lesson for your younger self"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "Why do you do it? Why do you bother maintaining a FOSS project?"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "If your repo had a theme song, what would it be?"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "Which file in your project would you most like to set on fire?"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "What's your open-source villain origin story?"
},
"response": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": ["question", "response"],
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
"const": "If you had to use one emoji to convey what it is like to be a FOSS maintainer, what would it be?"
},
"response": {
"type": "string",
"minLength": 1
}
}
}
]
},
"created_on": {
"type": "string",
"description": "ISO 8601 timestamp of when the entry was created",
"format": "date-time"
}
}
}