"A key can either have children or a value, never both: parents are created and removed automatically."
],
"oneOf":[
{
"type":"array",
"description":[
"An array of values to form a hierarchy (though a single value is treated as a one-element array). Using the first element of the key as the plugin name (e.g. `[ 'summary' ]`) is recommended."
],
"items":{
"type":"string"
}
},
{
"type":"string"
}
]
},
"string":{
"type":"string",
"description":[
"Data to be saved in string format."
]
},
"hex":{
"type":"hex",
"description":[
"Data to be saved in hex format."
]
},
"mode":{
"type":"string",
"description":[
"Write mode to determine how the record is updated:",
" * `must-create`: fails if it already exists.",
" * `must-replace`: fails if it doesn't already exist.",
" * `create-or-replace`: never fails.",
" * `must-append`: must already exist, append this to what's already there.",
" * `create-or-append`: append if anything is there, otherwise create."
],
"enum":[
"must-create",
"must-replace",
"create-or-replace",
"must-append",
"create-or-append"
],
"default":"`must-create`"
},
"generation":{
"type":"u64",
"description":[
"If specified, means that the update will fail if the previously-existing data is not exactly that generation. This allows for simple atomicity. This is only legal with *mode* `must-replace` or `must-append`."