Skip to content

Commit 321a084

Browse files
committed
chore: add a first draft of the config schema.
1 parent 33bf94d commit 321a084

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

lib/config/schema.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Angular CLI Config Schema",
4+
"type": "object",
5+
"properties": {
6+
"project": {
7+
"type": "object",
8+
"properties": {
9+
"version": {
10+
"type": "string"
11+
},
12+
"name": {
13+
"type": "string"
14+
},
15+
"dir": {
16+
"type": "object",
17+
"properties": {
18+
"source": {
19+
"type": "string"
20+
}
21+
},
22+
"additionalProperties": false
23+
}
24+
},
25+
"additionalProperties": false
26+
},
27+
"packages": {
28+
"type": "array",
29+
"items": {
30+
"type": "object",
31+
"properties": {},
32+
"additionalProperties": true
33+
}
34+
},
35+
"e2e": {
36+
"type": "object",
37+
"properties": {
38+
"protractor": {
39+
"type": "object",
40+
"properties": {
41+
"config": {
42+
"type": "string"
43+
}
44+
},
45+
"additionalProperties": false
46+
}
47+
},
48+
"additionalProperties": false
49+
},
50+
"test": {
51+
"type": "object",
52+
"properties": {
53+
"karma": {
54+
"type": "object",
55+
"properties": {
56+
"config": {
57+
"type": "string"
58+
}
59+
},
60+
"additionalProperties": false
61+
}
62+
},
63+
"additionalProperties": false
64+
}
65+
},
66+
"additionalProperties": false
67+
}

0 commit comments

Comments
 (0)