github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/cue_testdata/mysql_openapi.json (about) 1 { 2 "type": "object", 3 "properties": { 4 "spec": { 5 "description": "mysql config validator", 6 "type": "object", 7 "required": [ 8 "mysqld" 9 ], 10 "properties": { 11 "client": { 12 "description": "ignore client parameter validate\nmysql client: a set of name/value pairs.", 13 "type": "object", 14 "additionalProperties": { 15 "type": "string" 16 } 17 }, 18 "mysqld": { 19 "description": "mysql server param: a set of name/value pairs.", 20 "type": "object", 21 "required": [ 22 "automatic_sp_privileges", 23 "auto_increment_increment" 24 ], 25 "properties": { 26 "auto_increment_increment": { 27 "description": "[1~65535] default ON", 28 "type": "integer", 29 "default": 1, 30 "maximum": 65535, 31 "minimum": 1 32 }, 33 "automatic_sp_privileges": { 34 "description": "[OFF|ON] default ON", 35 "type": "string", 36 "default": "ON", 37 "enum": [ 38 "ON", 39 "OFF" 40 ] 41 }, 42 "binlog_stmt_cache_size": { 43 "type": "integer", 44 "default": 2097152, 45 "maximum": 16777216, 46 "minimum": 4096 47 }, 48 "innodb_autoinc_lock_mode": { 49 "description": "[0|1|2] default: 2", 50 "type": "integer", 51 "default": 2, 52 "enum": [ 53 2, 54 1, 55 0 56 ] 57 } 58 } 59 } 60 } 61 } 62 } 63 }