Skip to content

Commit b4e7e4d

Browse files
committed
- Update settings JSON schema
1 parent 48f6cdd commit b4e7e4d

File tree

2 files changed

+94
-5
lines changed

2 files changed

+94
-5
lines changed

schemas/settings.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,66 @@
253253
}
254254
},
255255
"additionalProperties": false
256+
},
257+
"var_aliases": {
258+
"title": "var_aliases",
259+
"description": "Declare alias names for bashly's public global arrays\nhttps://bashly.dannyb.co/usage/settings/#var_aliases",
260+
"type": "object",
261+
"properties": {
262+
"args": {
263+
"title": "args",
264+
"description": "Alias name for the args array\nhttps://bashly.dannyb.co/usage/settings/#var_aliases",
265+
"oneOf": [
266+
{
267+
"type": "string",
268+
"minLength": 1
269+
},
270+
{
271+
"type": "null"
272+
}
273+
]
274+
},
275+
"other_args": {
276+
"title": "other_args",
277+
"description": "Alias name for the other_args array (used when catch_all is enabled)\nhttps://bashly.dannyb.co/usage/settings/#var_aliases",
278+
"oneOf": [
279+
{
280+
"type": "string",
281+
"minLength": 1
282+
},
283+
{
284+
"type": "null"
285+
}
286+
]
287+
},
288+
"deps": {
289+
"title": "deps",
290+
"description": "Alias name for the deps array\nhttps://bashly.dannyb.co/usage/settings/#var_aliases",
291+
"oneOf": [
292+
{
293+
"type": "string",
294+
"minLength": 1
295+
},
296+
{
297+
"type": "null"
298+
}
299+
]
300+
},
301+
"env_var_names": {
302+
"title": "env_var_names",
303+
"description": "Alias name for the env_var_names array\nhttps://bashly.dannyb.co/usage/settings/#var_aliases",
304+
"oneOf": [
305+
{
306+
"type": "string",
307+
"minLength": 1
308+
},
309+
{
310+
"type": "null"
311+
}
312+
]
313+
}
314+
},
315+
"additionalProperties": false
256316
}
257317
},
258318
"additionalProperties": false

support/schema/settings.yml

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ properties:
6868
description: |-
6969
The path to use for command files, relative to source_dir
7070
https://bashly.dannyb.co/usage/settings/#commands_dir
71-
oneOf:
71+
oneOf: &optional_string
7272
- type: string
7373
minLength: 1
7474
- type: "null"
@@ -186,10 +186,7 @@ properties:
186186
description: |-
187187
The name of the environment variable (case sensitive) that, if set, will reveal private commands, flags and environment variables
188188
https://bashly.dannyb.co/usage/settings/#private_reveal_key
189-
oneOf:
190-
- type: string
191-
minLength: 1
192-
- type: "null"
189+
oneOf: *optional_string
193190
usage_colors:
194191
title: usage colors
195192
description: |-
@@ -228,4 +225,36 @@ properties:
228225
https://bashly.dannyb.co/usage/settings/#usage_colors
229226
$ref: '#/definitions/color'
230227
additionalProperties: false
228+
var_aliases:
229+
title: var_aliases
230+
description: |-
231+
Declare alias names for bashly's public global arrays
232+
https://bashly.dannyb.co/usage/settings/#var_aliases
233+
type: object
234+
properties:
235+
args:
236+
title: args
237+
description: |-
238+
Alias name for the args array
239+
https://bashly.dannyb.co/usage/settings/#var_aliases
240+
oneOf: *optional_string
241+
other_args:
242+
title: other_args
243+
description: |-
244+
Alias name for the other_args array (used when catch_all is enabled)
245+
https://bashly.dannyb.co/usage/settings/#var_aliases
246+
oneOf: *optional_string
247+
deps:
248+
title: deps
249+
description: |-
250+
Alias name for the deps array
251+
https://bashly.dannyb.co/usage/settings/#var_aliases
252+
oneOf: *optional_string
253+
env_var_names:
254+
title: env_var_names
255+
description: |-
256+
Alias name for the env_var_names array
257+
https://bashly.dannyb.co/usage/settings/#var_aliases
258+
oneOf: *optional_string
259+
additionalProperties: false
231260
additionalProperties: false

0 commit comments

Comments
 (0)