Skip to content

Commit 6cb0ebe

Browse files
committed
add learning tracks schema
1 parent d178a89 commit 6cb0ebe

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
properties: {
3+
type: 'object',
4+
additionalProperties: false,
5+
patternProperties: {
6+
'^[a-zA-Z-_]+$': {
7+
type: 'object',
8+
properties: {
9+
title: {
10+
type: 'string',
11+
required: true
12+
},
13+
description: {
14+
type: 'string',
15+
required: true
16+
},
17+
guides: {
18+
type: 'array',
19+
items: { type: 'string' },
20+
required: true
21+
},
22+
featured_track: {
23+
type: 'boolean'
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)