core-lightning/doc/schemas/createonion.schema.json
Rusty Russell fa127a4071 doc/schemas: remove unnecessary length restrictions.
If we have a specific type (not just "hex") the length is implied.

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

24 lines
535 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"onion",
"shared_secrets"
],
"properties": {
"onion": {
"type": "hex",
"description": "the onion packet (*onion_size* bytes)"
},
"shared_secrets": {
"type": "array",
"description": "one shared secret for each node in the *hops* parameter",
"items": {
"type": "secret",
"description": "the shared secret with this hop"
}
}
}
}