core-lightning/doc/schemas/datastore.schema.json
Rusty Russell e711f6c589 datastore: allow strings.
It's common, and the simplest case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-08-25 10:06:31 +02:00

21 lines
578 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [ "key", "hex" ],
"properties": {
"key": {
"type": "string",
"description": "The key which has been added to the datastore"
},
"hex": {
"type": "hex",
"description": "The hex data which has been added to the datastore"
},
"string": {
"type": "string",
"description": "The data as a string, if it's valid utf-8"
}
}
}