-
Notifications
You must be signed in to change notification settings - Fork 32
/
resource.schema
55 lines (55 loc) · 1.98 KB
/
resource.schema
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/developersIndia/resources/blob/master/resource.schema",
"title": "DevelopersIndia Resources Repository Schema",
"description": "This schema describes the structure of a resource availble on DevelopersIndia",
"type": "object",
"properties": {
"resources": {
"description": "The JSON list storing all the resources",
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"description": "The title of resource link",
"type": "string"
},
"url": {
"description": "The permalink to the resource",
"type": "string",
"format": "uri"
},
"type": {
"description": "What type of resource is this?",
"type": "string",
"pattern": "(video|article|book|github|course|audio|cheatsheet|website)"
},
"level": {
"description": "What kind of audience does this resource suits?",
"type": "string",
"pattern": "(beginner|intermediate|advanced|everyone)"
},
"reviews": {
"type": "array",
"items": {
"type": "string",
"minLength": 10
}
}
},
"required": [
"title",
"url",
"type",
"level"
]
},
"minItems": 1,
"uniqueItems": true
}
},
"required": [
"resources"
]
}