mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
doc: document that we should annotate added and deprecated schemas.
No longer just delete them! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -10,6 +10,15 @@ use a subset of the full [JSON Schema Specification](https://json-schema.org/),
|
|||||||
but if you find that limiting it's probably a sign that you should simplify
|
but if you find that limiting it's probably a sign that you should simplify
|
||||||
your JSON output.
|
your JSON output.
|
||||||
|
|
||||||
|
## Updating a Schema
|
||||||
|
|
||||||
|
If you add a field, you should add it to the schema, and you must add
|
||||||
|
"added": "VERSION" (where VERSION is the next release version!).
|
||||||
|
|
||||||
|
Similarly, if you deprecate a field, add "deprecated": "VERSION" (where
|
||||||
|
VERSION is the next release version). They will be removed two versions
|
||||||
|
later.
|
||||||
|
|
||||||
## How to Write a Schema
|
## How to Write a Schema
|
||||||
|
|
||||||
Name the schema doc/schemas/`command`.schema.json: the testsuite should
|
Name the schema doc/schemas/`command`.schema.json: the testsuite should
|
||||||
|
|||||||
Reference in New Issue
Block a user