{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "required": [ "autoclean" ], "properties": { "autoclean": { "type": "object", "additionalProperties": false, "properties": { "succeededforwards": { "type": "object", "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { "enabled": { "type": "boolean", "description": "whether autocleaning is enabled for successful listforwards" }, "cleaned": { "type": "u64", "description": "total number of deletions done (ever)" } }, "if": { "properties": { "enabled": { "type": "boolean", "enum": [ true ] } } }, "then": { "additionalProperties": false, "required": [ "enabled", "age", "cleaned" ], "properties": { "enabled": {}, "cleaned": {}, "age": { "type": "u64", "description": "age (in seconds) to delete successful listforwards" } } }, "else": { "additionalProperties": false, "required": [ "enabled", "cleaned" ], "properties": { "enabled": {}, "cleaned": {} } } }, "failedforwards": { "type": "object", "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { "enabled": { "type": "boolean", "description": "whether autocleaning is enabled for failed listforwards" }, "cleaned": { "type": "u64", "description": "total number of deletions done (ever)" } }, "if": { "properties": { "enabled": { "type": "boolean", "enum": [ true ] } } }, "then": { "additionalProperties": false, "required": [ "enabled", "age", "cleaned" ], "properties": { "enabled": {}, "cleaned": {}, "age": { "type": "u64", "description": "age (in seconds) to delete failed listforwards" } } }, "else": { "additionalProperties": false, "required": [ "enabled", "cleaned" ], "properties": { "enabled": {}, "cleaned": {} } } }, "succeededpays": { "type": "object", "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { "enabled": { "type": "boolean", "description": "whether autocleaning is enabled for successful listpays/listsendpays" }, "cleaned": { "type": "u64", "description": "total number of deletions done (ever)" } }, "if": { "properties": { "enabled": { "type": "boolean", "enum": [ true ] } } }, "then": { "additionalProperties": false, "required": [ "enabled", "age", "cleaned" ], "properties": { "enabled": {}, "cleaned": {}, "age": { "type": "u64", "description": "age (in seconds) to delete successful listpays/listsendpays" } } }, "else": { "additionalProperties": false, "required": [ "enabled", "cleaned" ], "properties": { "enabled": {}, "cleaned": {} } } }, "failedpays": { "type": "object", "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { "enabled": { "type": "boolean", "description": "whether autocleaning is enabled for failed listpays/listsendpays" }, "cleaned": { "type": "u64", "description": "total number of deletions done (ever)" } }, "if": { "properties": { "enabled": { "type": "boolean", "enum": [ true ] } } }, "then": { "additionalProperties": false, "required": [ "enabled", "age", "cleaned" ], "properties": { "enabled": {}, "cleaned": {}, "age": { "type": "u64", "description": "age (in seconds) to delete failed listpays/listsendpays" } } }, "else": { "additionalProperties": false, "required": [ "enabled", "cleaned" ], "properties": { "enabled": {}, "cleaned": {} } } }, "paidinvoices": { "type": "object", "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { "enabled": { "type": "boolean", "description": "whether autocleaning is enabled for paid listinvoices" }, "cleaned": { "type": "u64", "description": "total number of deletions done (ever)" } }, "if": { "properties": { "enabled": { "type": "boolean", "enum": [ true ] } } }, "then": { "additionalProperties": false, "required": [ "enabled", "age", "cleaned" ], "properties": { "enabled": {}, "cleaned": {}, "age": { "type": "u64", "description": "age (in seconds) to paid listinvoices" } } }, "else": { "additionalProperties": false, "required": [ "enabled", "cleaned" ], "properties": { "enabled": {}, "cleaned": {} } } }, "expiredinvoices": { "type": "object", "additionalProperties": true, "required": [ "enabled", "cleaned" ], "properties": { "enabled": { "type": "boolean", "description": "whether autocleaning is enabled for expired (unpaid) listinvoices" }, "cleaned": { "type": "u64", "description": "total number of deletions done (ever)" } }, "if": { "properties": { "enabled": { "type": "boolean", "enum": [ true ] } } }, "then": { "additionalProperties": false, "required": [ "enabled", "age", "cleaned" ], "properties": { "enabled": {}, "cleaned": {}, "age": { "type": "u64", "description": "age (in seconds) to expired listinvoices" } } }, "else": { "additionalProperties": false, "required": [ "enabled", "cleaned" ], "properties": { "enabled": {}, "cleaned": {} } } } } } } }