core-lightning/doc/schemas/listsqlschemas.schema.json
Rusty Russell fea73680d7 typo fixes found by @niftynei
Also, put the "added" lines in the request schemas for new commands:
this doesn't do anything (yet?) but it keeps `make schema-added-check` happy.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-01-30 15:15:41 -06:00

67 lines
1.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"schemas"
],
"properties": {
"schemas": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"tablename",
"columns"
],
"properties": {
"tablename": {
"type": "string",
"description": "the name of the table"
},
"columns": {
"type": "array",
"description": "the columns, in database order",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string",
"description": "the name of the column"
},
"type": {
"type": "string",
"enum": [
"INTEGER",
"BLOB",
"TEXT",
"REAL"
],
"description": "the SQL type of the column"
}
}
}
},
"indices": {
"type": "array",
"description": "Any index we created to speed lookups",
"items": {
"type": "array",
"description": "The columns for this index",
"items": {
"type": "string",
"description": "The column name"
}
}
}
}
}
}
}
}