core-lightning/doc/schemas/createonion.schema.json
Vincenzo Palazzo bd3c0ef85c jsonschema: Formatting json schema and regenerate docs
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-11-28 10:55:48 +10:30

26 lines
582 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": "hex",
"description": "the shared secret with this hop",
"maxLength": 64,
"minLength": 64
}
}
}
}