-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcatalog.schema.json
More file actions
46 lines (46 loc) · 1.79 KB
/
Copy pathcatalog.schema.json
File metadata and controls
46 lines (46 loc) · 1.79 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/thangldw/awesome-maintainer-defense/catalog.schema.json",
"title": "Awesome Maintainer Defense catalog",
"type": "object",
"required": ["schema_version", "last_verified", "categories", "resources"],
"additionalProperties": false,
"properties": {
"schema_version": {"type": "integer", "const": 1},
"last_verified": {"type": "string", "format": "date"},
"categories": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["id", "name", "description"],
"additionalProperties": false,
"properties": {
"id": {"type": "string", "pattern": "^[a-z0-9-]+$"},
"name": {"type": "string", "minLength": 3},
"description": {"type": "string", "minLength": 20}
}
}
},
"resources": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["id", "name", "url", "category", "type", "license", "description", "signals", "featured"],
"additionalProperties": false,
"properties": {
"id": {"type": "string", "pattern": "^[a-z0-9-]+$"},
"name": {"type": "string", "minLength": 2},
"url": {"type": "string", "format": "uri", "pattern": "^https://"},
"category": {"type": "string", "pattern": "^[a-z0-9-]+$"},
"type": {"enum": ["awesome-list", "github-action", "github-app", "templates", "tool", "working-group"]},
"license": {"type": "string", "minLength": 2},
"description": {"type": "string", "minLength": 24},
"signals": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 2}},
"featured": {"type": "boolean"}
}
}
}
}
}