doc: Updated schemas *.schema.json

- Makes emergency schema stricter
- Fixes some formatting
This commit is contained in:
ShahanaFarooqui 2024-02-02 15:20:24 +10:30 committed by Rusty Russell
parent d7cc1e4a17
commit fdc2dbdbc3
7 changed files with 18 additions and 18 deletions

View file

@ -1971,11 +1971,10 @@
"commando.schema.json": { "commando.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": true,
"required": [], "required": [],
"properties": { "properties": {
"any": { "any": {
"type": "object",
"description": "the return depends on the *method* invoked" "description": "the return depends on the *method* invoked"
} }
} }
@ -4874,7 +4873,7 @@
"stubs": { "stubs": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "hash",
"description": "Channel IDs of channels successfully inserted." "description": "Channel IDs of channels successfully inserted."
} }
} }

View file

@ -46,4 +46,4 @@ RESOURCES
Main web site: <https://github.com/ElementsProject/lightning> Main web site: <https://github.com/ElementsProject/lightning>
[comment]: # ( SHA256STAMP:879e99c76bb615e2c7f7356ff24b748ef42ff11cf692d1f199c60aacf9c09e0b) [comment]: # ( SHA256STAMP:91bba4770ed15de26de26d1fa380817a0f323293aae7a95eda835b7d566aad85)

View file

@ -1,11 +1,10 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": true,
"required": [], "required": [],
"properties": { "properties": {
"any": { "any": {
"type": "object",
"description": "the return depends on the *method* invoked" "description": "the return depends on the *method* invoked"
} }
} }

View file

@ -9,7 +9,7 @@
"stubs": { "stubs": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "hash",
"description": "Channel IDs of channels successfully inserted." "description": "Channel IDs of channels successfully inserted."
} }
} }

View file

@ -7,11 +7,11 @@
], ],
"properties": { "properties": {
"result": { "result": {
"type": "string", "type": "string",
"added": "v24.05", "added": "v24.05",
"enum": [ "enum": [
"Recovery restart in progress" "Recovery restart in progress"
] ]
} }
} }
} }

View file

@ -2,7 +2,9 @@
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["psbt"], "required": [
"psbt"
],
"properties": { "properties": {
"psbt": { "psbt": {
"type": "string", "type": "string",

View file

@ -7,11 +7,11 @@
], ],
"properties": { "properties": {
"result": { "result": {
"type": "string", "type": "string",
"added": "v24.05", "added": "v24.05",
"enum": [ "enum": [
"Shutdown complete" "Shutdown complete"
] ]
} }
} }
} }