forked from up-for-grabs/tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
108 lines (108 loc) · 3.23 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
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "Schema for the Up-For-Grabs project file",
"required": ["name", "desc", "site", "tags", "upforgrabs"],
"properties": {
"name": {
"$id": "#/properties/name",
"type": "string",
"title": "The name of the project",
"examples": ["My Cool Project"],
"pattern": "^(.*)$"
},
"desc": {
"$id": "#/properties/desc",
"type": "string",
"title": "A description to summarize the project",
"examples": [
"This is a neat project that does a really cool thing."
]
},
"site": {
"$id": "#/properties/site",
"type": "string",
"title": "The URL to the main project site",
"examples": ["https://github.com/solr-express/solr-express"],
"format": "uri"
},
"tags": {
"$id": "#/properties/tags",
"type": "array",
"title": "A list of tags to help identify the project",
"items": {
"$id": "#/properties/tags/items",
"type": "string",
"title": "A tag entry",
"examples": ["solr", "c#", ".net-framework", ".net-core"],
"pattern": "^([a-z0-9+#.-]*)$"
}
},
"upforgrabs": {
"$id": "#/properties/upforgrabs",
"type": "object",
"title": "The schema for the original UpForGrabs project information",
"required": ["name", "link"],
"properties": {
"name": {
"$id": "#/properties/upforgrabs/properties/name",
"type": "string",
"title": "The name of the label used by the project",
"examples": ["up for grabs"],
"pattern": "^(.*)$"
},
"link": {
"$id": "#/properties/upforgrabs/properties/link",
"type": "string",
"title": "A URL to the list of issues that are ideal for new contributors",
"examples": [
"https://github.com/solr-express/solr-express/labels/up%20for%20grabs"
],
"format": "uri"
}
}
},
"stats":
{
"$id": "#/properties/stats",
"oneOf": [
{
"type": "object",
"title": "Statistics for the current project",
"required": ["issue-count", "last-updated"],
"properties": {
"issue-count": {
"$id": "#/properties/stats/properties/issue-count",
"type": "integer",
"title": "The Issue-count Schema",
"minimum": 0
},
"last-updated": {
"$id": "#/properties/stats/properties/last-updated",
"type": "string",
"title": "The Last-updated Schema",
"format": "date-time"
}
}
},
{
"type": "object",
"title": "Statistics for the current project",
"required": ["issue-count"],
"properties": {
"issue-count": {
"$id": "#/properties/stats/properties/issue-count",
"type": "integer",
"title": "The Issue-count Schema",
"default": 0,
"minimum": 0,
"maximum": 0
}
}
}
]
}
}
}