2021-05-26 07:51:01 +02:00
|
|
|
{
|
2021-11-04 15:15:51 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true,
|
|
|
|
"required": [
|
|
|
|
"enabled"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "whether invoice autocleaning is active"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"enum": [
|
|
|
|
true
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"expired_by",
|
|
|
|
"cycle_seconds"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"enabled": {},
|
|
|
|
"expired_by": {
|
|
|
|
"type": "u64",
|
|
|
|
"description": "how long an invoice must be expired (seconds) before we delete it"
|
|
|
|
},
|
|
|
|
"cycle_seconds": {
|
|
|
|
"type": "u64",
|
|
|
|
"description": "how long an invoice must be expired (seconds) before we delete it"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"else": {
|
|
|
|
"additionalProperties": false,
|
2021-05-26 07:51:01 +02:00
|
|
|
"properties": {
|
2021-11-04 15:15:51 +01:00
|
|
|
"enabled": {}
|
2021-05-26 07:51:01 +02:00
|
|
|
}
|
2021-11-04 15:15:51 +01:00
|
|
|
}
|
2021-05-26 07:51:01 +02:00
|
|
|
}
|