Skip to content

Commit 423a271

Browse files
committed
update schema to allow environment_variable.allowed
1 parent 6abced5 commit 423a271

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

schemas/bashly.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,21 @@
421421
"type": "boolean",
422422
"default": true
423423
},
424+
"environment-variables-allowed-property": {
425+
"title": "allowed",
426+
"description": "Valid values of the current environment variable\nhttps://bashly.dannyb.co/configuration/environment-variable/#allowed",
427+
"type": "array",
428+
"minLength": 1,
429+
"uniqueItems": true,
430+
"items": {
431+
"description": "A valid value of the current environment variable",
432+
"type": "string",
433+
"minLength": 1,
434+
"examples": [
435+
"production"
436+
]
437+
}
438+
},
424439
"environment-variables-property": {
425440
"title": "environment variables",
426441
"description": "Environment variables of the current application\nhttps://bashly.dannyb.co/configuration/environment-variable/#environment-variable",
@@ -448,6 +463,9 @@
448463
},
449464
"required": {
450465
"$ref": "#/definitions/environment-variables-required-property"
466+
},
467+
"allowed": {
468+
"$ref": "#/definitions/environment-variables-allowed-property"
451469
}
452470
},
453471
"if": {
@@ -473,6 +491,9 @@
473491
},
474492
"required": {
475493
"$ref": "#/definitions/environment-variables-required-property"
494+
},
495+
"allowed": {
496+
"$ref": "#/definitions/environment-variables-allowed-property"
476497
}
477498
},
478499
"patternProperties": {

support/schema/bashly.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,20 @@ definitions:
377377
https://bashly.dannyb.co/configuration/environment-variable/#required
378378
type: boolean
379379
default: true
380+
environment-variables-allowed-property:
381+
title: allowed
382+
description: |-
383+
Valid values of the current environment variable
384+
https://bashly.dannyb.co/configuration/environment-variable/#allowed
385+
type: array
386+
minLength: 1
387+
uniqueItems: true
388+
items:
389+
description: A valid value of the current environment variable
390+
type: string
391+
minLength: 1
392+
examples:
393+
- production
380394
environment-variables-property:
381395
title: environment variables
382396
description: |-
@@ -403,6 +417,8 @@ definitions:
403417
$ref: '#/definitions/environment-variables-private-property'
404418
required:
405419
$ref: '#/definitions/environment-variables-required-property'
420+
allowed:
421+
$ref: '#/definitions/environment-variables-allowed-property'
406422
if:
407423
properties:
408424
required:
@@ -419,6 +435,8 @@ definitions:
419435
$ref: '#/definitions/environment-variables-private-property'
420436
required:
421437
$ref: '#/definitions/environment-variables-required-property'
438+
allowed:
439+
$ref: '#/definitions/environment-variables-allowed-property'
422440
patternProperties: *custom-properties
423441
additionalProperties: false
424442
else:

0 commit comments

Comments
 (0)