Skip to content

Commit 177b535

Browse files
committed
feat(@angular-devkit/schematics): have a schema for collection.json
1 parent d95ca64 commit 177b535

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "http://json-schema.org/schema",
3+
"id": "SchematicsCollectionSchema",
4+
"title": "Collection Schema for validating a 'collection.json'.",
5+
"type": "object",
6+
"properties": {
7+
"schematics": {
8+
"type": "object",
9+
"properties": {
10+
"additionalProperty": {
11+
"type": "object",
12+
"properties": {
13+
"factory": {
14+
"type": "string"
15+
},
16+
"description": {
17+
"type": "string"
18+
},
19+
"extends": {
20+
"type": "string"
21+
},
22+
"schema": {
23+
"type": "string"
24+
}
25+
},
26+
"required": [
27+
"factory",
28+
"description"
29+
]
30+
}
31+
}
32+
},
33+
"version": {
34+
"type": "string"
35+
}
36+
},
37+
"required": [
38+
"schematics"
39+
]
40+
}

0 commit comments

Comments
 (0)