-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdatabase.schema.json
More file actions
273 lines (273 loc) · 8.1 KB
/
database.schema.json
File metadata and controls
273 lines (273 loc) · 8.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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "array",
"items": {
"$ref": "#/$defs/CompiledMeta"
},
"description": "List of all entities in the system"
},
"resources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The official name of the resource"
},
"description": {
"description": "A brief description of the resource",
"type": "string",
"maxLength": 256
},
"url": {
"type": "string",
"format": "uri",
"description": "URL to the resource"
},
"type": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"Video",
"Article",
"Interactive Tutorial",
"Book",
"Course"
]
},
"description": "The type(s) of the resource, e.g. 'Video', 'Book', 'Course', etc."
},
"teaches": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"clojure",
"cpp",
"general",
"git",
"haskell",
"java",
"kotlin",
"php",
"programming-language-design",
"python",
"rust",
"sql"
]
},
"description": "The topics that this resource teaches."
},
"pricing": {
"oneOf": [
{
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": [
"Free",
"Freemium"
],
"description": "The Free(mium) Pricing Model of this resource. 'Free' should be used for resources where 100% (or close) of the content is free. 'Freemium' describes a pricing model where the core content is available for free, but features paid extensions. If the resource has a freemium model but the free portion is very limited, consider using 'Paid' instead and providing an estimated price for the full version. "
}
},
"required": [
"model"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": [
"Subscription",
"One Time"
],
"description": "The Paid Pricing Model of this resource. 'Subscription' means the resource is paid on a recurring basis (e.g. monthly or yearly), while 'One Time' means the resource is paid with a single upfront payment. If the price varies or is not fixed, provide a close approximation. Note that the subscription renewal cycle is not specified, so if the price has different renewal cycles, provide the most common or default one (usually monthly)."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "The price of this resource, in US Dollars."
}
},
"required": [
"model",
"amount"
],
"additionalProperties": false
}
]
},
"pros": {
"description": "Array of pros for using the resource, e.g. 'explains difficult concepts with good analogies'",
"type": "array",
"items": {
"type": "string"
}
},
"cons": {
"description": "Array of cons for using the resource, e.g. 'only teaches the basics rather than more advanced concepts'",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"url",
"type",
"teaches",
"pricing"
],
"additionalProperties": false
},
"description": "List of all learning resources"
}
},
"required": [
"metadata",
"resources"
],
"additionalProperties": false,
"$defs": {
"CompiledMeta": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the language, tool, etc being described by this metadata."
},
"description": {
"type": "string",
"description": "A brief description of the language, tool, etc being described by this metadata."
},
"emoji": {
"description": "A Unicode emoji glyph to represent the entity, if applicable. If there is no suitable (Unicode) emoji, omit this field. Consumers may choose to ignore this field, or replace it with a custom image.",
"type": "string"
},
"domains": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Web Development",
"Data Science",
"Mobile Development",
"Game Development",
"Systems Programming",
"Scripting",
"General Purpose",
"DevOps"
]
},
"description": "The domain(s) that the entity is commonly used in, or best suited for."
},
"category": {
"oneOf": [
{
"$ref": "#/$defs/CategoryLanguage"
},
{
"$ref": "#/$defs/CategoryPlatform"
},
{
"$ref": "#/$defs/CategoryTool"
}
]
},
"id": {
"type": "string",
"enum": [
"clojure",
"cpp",
"general",
"git",
"haskell",
"java",
"kotlin",
"php",
"programming-language-design",
"python",
"rust",
"sql"
]
}
},
"required": [
"name",
"description",
"domains",
"category",
"id"
],
"additionalProperties": false
},
"CategoryLanguage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Language"
},
"paradigms": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Object-Oriented Programming",
"Functional Programming",
"Procedural Programming",
"Logic Programming"
]
},
"description": "The programming paradigms that this language focuses on, e.g. 'Object-Oriented Programming', 'Functional Programming', 'Procedural Programming', etc."
}
},
"required": [
"type",
"paradigms"
],
"additionalProperties": false
},
"CategoryPlatform": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Platform"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "A platform used to learn programming, which may teach a variety of languages and concepts."
},
"CategoryTool": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Tool"
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"$comment": "// Generated by index.ts - DO NOT EDIT THIS FILE DIRECTLY"
}