|
281 | 281 | }, |
282 | 282 | "additionalProperties": false |
283 | 283 | }, |
| 284 | + "environment-variable": { |
| 285 | + "title": "environment variable", |
| 286 | + "description": "An environment variable of the current application\nhttps://bashly.dannyb.co/configuration/environment-variable/#environment-variable", |
| 287 | + "type": "object", |
| 288 | + "required": [ |
| 289 | + "name" |
| 290 | + ], |
| 291 | + "properties": { |
| 292 | + "name": { |
| 293 | + "$ref": "#/definitions/environment-variables-name-property" |
| 294 | + }, |
| 295 | + "help": { |
| 296 | + "$ref": "#/definitions/environment-variables-help-property" |
| 297 | + }, |
| 298 | + "private": { |
| 299 | + "$ref": "#/definitions/environment-variables-private-property" |
| 300 | + }, |
| 301 | + "required": { |
| 302 | + "$ref": "#/definitions/environment-variables-required-property" |
| 303 | + }, |
| 304 | + "allowed": { |
| 305 | + "$ref": "#/definitions/environment-variables-allowed-property" |
| 306 | + }, |
| 307 | + "default": { |
| 308 | + "$ref": "#/definitions/environment-variables-default-property" |
| 309 | + } |
| 310 | + }, |
| 311 | + "patternProperties": { |
| 312 | + "^x_.": { |
| 313 | + "title": "custom property", |
| 314 | + "description": "A custom property of any type", |
| 315 | + "examples": [ |
| 316 | + "Anything" |
| 317 | + ] |
| 318 | + } |
| 319 | + }, |
| 320 | + "additionalProperties": false |
| 321 | + }, |
284 | 322 | "name-property": { |
285 | 323 | "title": "name", |
286 | 324 | "description": "A name of the current script or sub-command\nhttps://bashly.dannyb.co/configuration/command/#name", |
|
442 | 480 | "type": "array", |
443 | 481 | "uniqueItems": true, |
444 | 482 | "items": { |
445 | | - "title": "environment variable", |
446 | | - "description": "An environment variable of the current application\nhttps://bashly.dannyb.co/configuration/environment-variable/#environment-variable", |
447 | | - "type": "object", |
448 | | - "required": [ |
449 | | - "name" |
450 | | - ], |
451 | | - "properties": { |
452 | | - "name": { |
453 | | - "$ref": "#/definitions/environment-variables-name-property" |
454 | | - }, |
455 | | - "help": { |
456 | | - "$ref": "#/definitions/environment-variables-help-property" |
457 | | - }, |
458 | | - "default": { |
459 | | - "$ref": "#/definitions/environment-variables-default-property" |
460 | | - }, |
461 | | - "private": { |
462 | | - "$ref": "#/definitions/environment-variables-private-property" |
463 | | - }, |
464 | | - "required": { |
465 | | - "$ref": "#/definitions/environment-variables-required-property" |
466 | | - }, |
467 | | - "allowed": { |
468 | | - "$ref": "#/definitions/environment-variables-allowed-property" |
469 | | - } |
470 | | - }, |
471 | | - "if": { |
472 | | - "properties": { |
473 | | - "required": { |
474 | | - "const": false |
475 | | - } |
476 | | - } |
477 | | - }, |
478 | | - "then": { |
479 | | - "properties": { |
480 | | - "name": { |
481 | | - "$ref": "#/definitions/environment-variables-name-property" |
482 | | - }, |
483 | | - "help": { |
484 | | - "$ref": "#/definitions/environment-variables-help-property" |
485 | | - }, |
486 | | - "default": { |
487 | | - "$ref": "#/definitions/environment-variables-default-property" |
488 | | - }, |
489 | | - "private": { |
490 | | - "$ref": "#/definitions/environment-variables-private-property" |
491 | | - }, |
492 | | - "required": { |
493 | | - "$ref": "#/definitions/environment-variables-required-property" |
494 | | - }, |
495 | | - "allowed": { |
496 | | - "$ref": "#/definitions/environment-variables-allowed-property" |
497 | | - } |
498 | | - }, |
499 | | - "patternProperties": { |
500 | | - "^x_.": { |
501 | | - "title": "custom property", |
502 | | - "description": "A custom property of any type", |
503 | | - "examples": [ |
504 | | - "Anything" |
505 | | - ] |
506 | | - } |
507 | | - }, |
508 | | - "additionalProperties": false |
509 | | - }, |
510 | | - "else": { |
511 | | - "properties": { |
512 | | - "name": { |
513 | | - "$ref": "#/definitions/environment-variables-name-property" |
514 | | - }, |
515 | | - "help": { |
516 | | - "$ref": "#/definitions/environment-variables-help-property" |
517 | | - }, |
518 | | - "private": { |
519 | | - "$ref": "#/definitions/environment-variables-private-property" |
520 | | - }, |
521 | | - "required": { |
522 | | - "$ref": "#/definitions/environment-variables-required-property" |
523 | | - } |
524 | | - }, |
525 | | - "patternProperties": { |
526 | | - "^x_.": { |
527 | | - "title": "custom property", |
528 | | - "description": "A custom property of any type", |
529 | | - "examples": [ |
530 | | - "Anything" |
531 | | - ] |
532 | | - } |
533 | | - }, |
534 | | - "additionalProperties": false |
535 | | - } |
| 483 | + "$ref": "#/definitions/environment-variable" |
536 | 484 | } |
537 | 485 | }, |
538 | 486 | "examples-property": { |
|
0 commit comments