forked from kyubisation/angular-server-side-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngssc.schema.json
39 lines (39 loc) · 1.11 KB
/
ngssc.schema.json
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
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/kyubisation/angular-server-side-configuration/blob/master/ngssc.schema.json",
"type": "object",
"title": "The Ngssc Schema",
"required": ["variant", "environmentVariables"],
"properties": {
"variant": {
"$id": "#/properties/variant",
"type": "string",
"title": "The Variant Schema",
"default": "",
"examples": ["process"],
"pattern": "^(process|NG_ENV)$"
},
"environmentVariables": {
"$id": "#/properties/environmentVariables",
"type": "array",
"title": "The Environmentvariables Schema",
"items": {
"$id": "#/properties/environmentVariables/items",
"type": "string",
"title": "The Items Schema",
"default": "",
"examples": ["TEST_VALUE"],
"pattern": "^([\\w_]*)$"
}
},
"filePattern": {
"$id": "#/properties/filePattern",
"type": "string",
"title": "The Filepattern Schema",
"default": "",
"examples": ["**/index.html"],
"pattern": "^(.*)$"
}
}
}