-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremote.schema.json
98 lines (98 loc) · 3.56 KB
/
remote.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
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The schema of the configuration file."
},
"$version": {
"type": "number",
"description": "The version of the configuration file. (Do not modify it manually.)"
},
"name": {
"type": "string",
"description": "The remote repository's name. Maximum 24 characters.",
"maxLength": 24
},
"enabled": {
"type": "boolean",
"description": "Whether this remote is enabled."
},
"environment": {
"type": "string",
"description": "The environment in which this remote is used.",
"enum": ["development", "production"]
},
"paths": {
"type": "object",
"description": "Paths configuration for various remote directories.",
"properties": {
"components": {
"type": "string"
},
"utils": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
},
"required": ["components", "utils"]
},
"components": {
"type": "object",
"description": "The components in the remote.",
"additionalProperties": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "The semantic version of the component.",
"examples": ["1.0.0"]
},
"utils": {
"type": "object",
"description": "The utilities used in the component requiring a specific version.",
"additionalProperties": {
"type": "string",
"description": "The utility version required by the component.",
"examples": ["1.0.0"]
}
},
"packages": {
"type": "array",
"description": "Additional package dependencies required by the component.",
"items": {
"type": "string"
}
}
},
"required": ["version", "utils", "packages"]
}
},
"utils": {
"type": "object",
"description": "Semantic versioning of the utilities in this remote.",
"additionalProperties": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "The semantic version of the utility.",
"examples": ["1.0.0"]
},
"packages": {
"type": "array",
"description": "Additional package dependencies required by the utility.",
"items": {
"type": "string"
}
}
},
"required": ["version", "packages"]
}
}
},
"required": ["$version", "name", "enabled", "environment", "paths", "components", "utils"]
}