github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/cue_testdata/mysql_openapi_v2.json (about) 1 { 2 "type": "object", 3 "properties": { 4 "spec": { 5 "description": "mysql all parameters definition", 6 "type": "object", 7 "required": [ 8 "mysqlld" 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 "mysqlld": { 19 "description": "mysql config validator", 20 "type": "object", 21 "required": [ 22 "automatic_sp_privileges", 23 "auto_increment_increment", 24 "binlog_stmt_cache_size", 25 "flush_time", 26 "group_concat_max_len", 27 "gtid_mode", 28 "port", 29 "KeyPath" 30 ], 31 "properties": { 32 "KeyPath": { 33 "description": "custom format, reference Regular expressions", 34 "type": "string", 35 "pattern": "^[a-z][a-zA-Z0-9]+.pem$" 36 }, 37 "auto_increment_increment": { 38 "description": "[1~65535] default ON", 39 "type": "integer", 40 "default": 1, 41 "maximum": 65535, 42 "minimum": 1 43 }, 44 "automatic_sp_privileges": { 45 "description": "[OFF|ON] default ON", 46 "type": "string", 47 "default": "ON", 48 "enum": [ 49 "ON", 50 "OFF" 51 ] 52 }, 53 "binlog_stmt_cache_size": { 54 "type": "integer", 55 "default": 2097152, 56 "maximum": 16777216, 57 "minimum": 4096 58 }, 59 "caching_sha2_password_private_key_path": { 60 "$ref": "#/components/schemas/MysqlSchema.mysqlld.KeyPath" 61 }, 62 "flush_time": { 63 "type": "integer", 64 "default": 0, 65 "maximum": 31536000, 66 "minimum": 0 67 }, 68 "group_concat_max_len": { 69 "type": "integer", 70 "default": 1024 71 }, 72 "gtid_mode": { 73 "type": "string", 74 "enum": [ 75 "0", 76 "1", 77 "OFF", 78 "ON" 79 ] 80 }, 81 "innodb_autoinc_lock_mode": { 82 "description": "[0|1|2] default: 2", 83 "type": "integer", 84 "enum": [ 85 2 86 ] 87 }, 88 "innodb_buffer_pool_load_now": { 89 "description": "[0|1] default empty", 90 "type": "integer", 91 "enum": [ 92 0, 93 1 94 ] 95 }, 96 "port": { 97 "type": "integer" 98 } 99 } 100 } 101 } 102 } 103 } 104 }