File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 421421 "type" : " boolean" ,
422422 "default" : true
423423 },
424+ "environment-variables-allowed-property" : {
425+ "title" : " allowed" ,
426+ "description" : " Valid values of the current environment variable\n https://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\n https://bashly.dannyb.co/configuration/environment-variable/#environment-variable" ,
448463 },
449464 "required" : {
450465 "$ref" : " #/definitions/environment-variables-required-property"
466+ },
467+ "allowed" : {
468+ "$ref" : " #/definitions/environment-variables-allowed-property"
451469 }
452470 },
453471 "if" : {
473491 },
474492 "required" : {
475493 "$ref" : " #/definitions/environment-variables-required-property"
494+ },
495+ "allowed" : {
496+ "$ref" : " #/definitions/environment-variables-allowed-property"
476497 }
477498 },
478499 "patternProperties" : {
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments