-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.json
146 lines (146 loc) · 3.38 KB
/
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Config",
"type": "object",
"required": [
"cache",
"profiles",
"version"
],
"properties": {
"cache": {
"title": "Cache",
"description": "Options related to the local secrets cache",
"allOf": [
{
"$ref": "#/definitions/Cache"
}
]
},
"global": {
"title": "Global",
"description": "Overrides for global configuration options, applied to all profiles",
"anyOf": [
{
"$ref": "#/definitions/Global"
},
{
"type": "null"
}
]
},
"profiles": {
"title": "Profiles",
"description": "List of profiles that hold information about the bitwarden project and profile-specific overrides",
"allOf": [
{
"$ref": "#/definitions/Profiles"
}
]
},
"version": {
"title": "Version",
"description": "A semantic version that the version of the bwenv CLI must match",
"allOf": [
{
"$ref": "#/definitions/VersionReq"
}
]
}
},
"definitions": {
"Cache": {
"type": "object",
"properties": {
"max-age": {
"title": "Cache Max Age",
"description": "Maximum age of the local secrets cache in seconds",
"default": 86400,
"allOf": [
{
"$ref": "#/definitions/CacheMaxAge"
}
]
},
"path": {
"title": "Cache Path",
"description": "Path to the local secrets cache directory relative to the project root",
"default": ".cache",
"allOf": [
{
"$ref": "#/definitions/CachePath"
}
]
}
}
},
"CacheMaxAge": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"CachePath": {
"type": "string"
},
"Global": {
"title": "Global",
"description": "Global configuration options",
"type": "object",
"properties": {
"overrides": {
"title": "Global Overrides",
"description": "Overrides that apply to all profiles unless specified by the profile itself",
"default": {},
"allOf": [
{
"$ref": "#/definitions/GlobalOverrides"
}
]
}
}
},
"GlobalOverrides": {
"$ref": "#/definitions/Secrets"
},
"Profile": {
"title": "Profile",
"description": "Configuration for a single profile",
"type": "object",
"required": [
"project-id"
],
"properties": {
"overrides": {
"title": "Profile Overrides",
"description": "Profile-specific secret overrides",
"default": {},
"allOf": [
{
"$ref": "#/definitions/Secrets"
}
]
},
"project-id": {
"title": "Profile Bitwarden Project ID",
"description": "ID of the Bitwarden project",
"type": "string"
}
}
},
"Profiles": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Profile"
}
},
"Secrets": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"VersionReq": {
"type": "string"
}
}
}