github.com/jenkins-x/jx/v2@v2.1.155/pkg/surveyutils/test_data/ifThenElse.test.schema.json (about)

     1  {
     2    "$id": "https:/jenkins-x.io/tests/basicTypes.schema.json",
     3    "$schema": "http://json-schema.org/draft-07/schema#",
     4    "description": "test values.yaml",
     5    "type": "object",
     6    "properties": {
     7      "enablePersistentStorage": {
     8        "type": "boolean"
     9      }
    10    },
    11    "if": {
    12      "properties": {
    13        "enablePersistentStorage": {
    14          "const": "true",
    15          "type": "boolean"
    16        }
    17      }
    18    },
    19    "then": {
    20      "properties": {
    21        "databaseConnectionUrl": {
    22          "type": "string"
    23        },
    24        "databaseUsername": {
    25          "type": "string"
    26        },
    27        "databasePassword": {
    28          "type": "string",
    29          "format": "password"
    30        }
    31      }
    32    },
    33    "else": {
    34      "properties": {
    35        "enableInMemoryDB": {
    36          "type": "boolean",
    37          "default": true
    38        }
    39      }
    40    }
    41  }