github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/surveyutils/test_data/ifThenElseNested.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 "nestedObject": { 8 "type": "object", 9 "properties": { 10 "enablePersistentStorage": { 11 "type": "boolean" 12 }, 13 "nestedString": { 14 "type": "string" 15 } 16 }, 17 "if": { 18 "properties": { "enablePersistentStorage": { "const": "true" } } 19 }, 20 "then": { 21 "properties": { "databaseConnectionUrl": { "type": "string" }, 22 "databaseUsername": { "type": "string"}, 23 "databasePassword": { "type": "string", "format" : "password"} } 24 }, 25 "else": { 26 "properties": { "enableInMemoryDB": { "type": "boolean", "default": true} } 27 } 28 } 29 } 30 }