-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathws-global.schema.json
More file actions
53 lines (53 loc) 路 1.78 KB
/
Copy pathws-global.schema.json
File metadata and controls
53 lines (53 loc) 路 1.78 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
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://withsecrets.com/ws-global.schema.json",
"title": "Global withsecrets Configuration File",
"description": "Schema for the global withsecrets configuration file located at ~/.config/withsecrets/config.yaml",
"type": "object",
"properties": {
"cache": {
"description": "Cache configuration. Can be a boolean, number (seconds), or duration string (e.g., '1d', '2w', '72h', '2y').",
"oneOf": [
{ "type": "boolean" },
{ "type": "number" },
{ "type": "string", "pattern": "^(\\d+(?:\\.\\d+)?[smhdwy]|\\d+)$" },
{
"type": "object",
"properties": {
"enabled": { "type": "boolean" },
"ttl": {
"oneOf": [
{ "type": "number" },
{ "type": "string", "pattern": "^(\\d+(?:\\.\\d+)?[smhdwy]|\\d+)$" }
]
}
},
"additionalProperties": false
}
]
},
"defaults": {
"description": "Optional defaults used to pre-fill CLI/TUI prompts.",
"type": "object",
"properties": {
"providers": {
"description": "Provider-specific default settings. Keys must match provider names used in ws.yaml providers section (e.g. aws, azure, gcp).",
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"regions": {
"description": "Default regions/locations for this provider.",
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": true
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}