-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathsettings-schema.json
More file actions
40 lines (40 loc) · 1.34 KB
/
settings-schema.json
File metadata and controls
40 lines (40 loc) · 1.34 KB
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
{
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "HK Settings Registry",
"description": "Simplified schema for settings.toml (internal registry)",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-z][a-z0-9_]*$": {
"type": "object",
"additionalProperties": false,
"required": ["type", "docs"],
"properties": {
"type": { "type": "string" },
"default": {},
"merge": { "type": "string", "enum": ["union", "replace"] },
"sources": {
"type": "object",
"additionalProperties": false,
"properties": {
"cli": { "type": "array", "items": { "type": "string" } },
"env": { "type": "array", "items": { "type": "string" } },
"git": { "type": "array", "items": { "type": "string" } },
"pkl": { "type": "array", "items": { "type": "string" } }
}
},
"validate": {
"type": "object",
"additionalProperties": false,
"properties": {
"enum": { "type": "array", "items": { "type": "string" } }
}
},
"docs": { "type": "string" },
"examples": { "type": "array", "items": { "type": "string" } },
"deprecated": { "type": "string" },
"since": { "type": "string" }
}
}
}
}