File tree Expand file tree Collapse file tree 2 files changed +72
-9
lines changed Expand file tree Collapse file tree 2 files changed +72
-9
lines changed Original file line number Diff line number Diff line change 76
76
"validate" : {
77
77
"title" : " validate" ,
78
78
"description" : " A validation function of the current positional argument\n https://bashly.dev/configuration/argument/#validate" ,
79
- "type" : " string" ,
79
+ "oneOf" : [
80
+ {
81
+ "type" : " string"
82
+ },
83
+ {
84
+ "type" : " array" ,
85
+ "minItems" : 1 ,
86
+ "items" : {
87
+ "type" : " string"
88
+ }
89
+ }
90
+ ],
80
91
"examples" : [
81
92
" file_exists" ,
82
93
" dir_exists" ,
83
94
" integer" ,
84
- " non_empty"
95
+ " non_empty" ,
96
+ [
97
+ " file_exists" ,
98
+ " file_writable"
99
+ ]
85
100
]
86
101
},
87
102
"unique" : {
261
276
"validate" : {
262
277
"title" : " validate" ,
263
278
"description" : " A validation function of the current flag\n https://bashly.dev/configuration/flag/#validate" ,
264
- "type" : " string" ,
279
+ "oneOf" : [
280
+ {
281
+ "type" : " string"
282
+ },
283
+ {
284
+ "type" : " array" ,
285
+ "minItems" : 1 ,
286
+ "items" : {
287
+ "type" : " string"
288
+ }
289
+ }
290
+ ],
265
291
"examples" : [
266
292
" file_exists" ,
267
293
" dir_exists" ,
268
294
" integer" ,
269
- " non_empty"
295
+ " non_empty" ,
296
+ [
297
+ " file_exists" ,
298
+ " file_writable"
299
+ ]
270
300
]
271
301
},
272
302
"unique" : {
337
367
"validate" : {
338
368
"title" : " validate" ,
339
369
"description" : " A validation function for the current environment variable\n https://bashly.dev/configuration/environment-variable/#validate" ,
340
- "type" : " string" ,
370
+ "oneOf" : [
371
+ {
372
+ "type" : " string"
373
+ },
374
+ {
375
+ "type" : " array" ,
376
+ "minItems" : 1 ,
377
+ "items" : {
378
+ "type" : " string"
379
+ }
380
+ }
381
+ ],
341
382
"examples" : [
342
383
" file_exists" ,
343
384
" dir_exists" ,
344
385
" integer" ,
345
- " non_empty"
386
+ " non_empty" ,
387
+ [
388
+ " file_exists" ,
389
+ " file_writable"
390
+ ]
346
391
]
347
392
},
348
393
"allowed" : {
Original file line number Diff line number Diff line change @@ -73,12 +73,18 @@ definitions:
73
73
description : |-
74
74
A validation function of the current positional argument
75
75
https://bashly.dev/configuration/argument/#validate
76
- type : string
76
+ oneOf :
77
+ - type : string
78
+ - type : array
79
+ minItems : 1
80
+ items :
81
+ type : string
77
82
examples :
78
83
- file_exists
79
84
- dir_exists
80
85
- integer
81
86
- non_empty
87
+ - [file_exists, file_writable]
82
88
unique :
83
89
title : unique
84
90
description : |-
@@ -239,12 +245,18 @@ definitions:
239
245
description : |-
240
246
A validation function of the current flag
241
247
https://bashly.dev/configuration/flag/#validate
242
- type : string
248
+ oneOf :
249
+ - type : string
250
+ - type : array
251
+ minItems : 1
252
+ items :
253
+ type : string
243
254
examples :
244
255
- file_exists
245
256
- dir_exists
246
257
- integer
247
258
- non_empty
259
+ - [file_exists, file_writable]
248
260
unique :
249
261
title : unique
250
262
description : |-
@@ -305,12 +317,18 @@ definitions:
305
317
description : |-
306
318
A validation function for the current environment variable
307
319
https://bashly.dev/configuration/environment-variable/#validate
308
- type : string
320
+ oneOf :
321
+ - type : string
322
+ - type : array
323
+ minItems : 1
324
+ items :
325
+ type : string
309
326
examples :
310
327
- file_exists
311
328
- dir_exists
312
329
- integer
313
330
- non_empty
331
+ - [file_exists, file_writable]
314
332
allowed :
315
333
title : allowed
316
334
description : |-
You can’t perform that action at this time.
0 commit comments