Add backup restore contracts
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://trixie.local/contracts/v1/backup-restore-request.json",
|
||||
"title": "Backup restore request",
|
||||
"type": "object",
|
||||
"required": ["filename", "confirmation"],
|
||||
"properties": {
|
||||
"filename": {
|
||||
"type": "string",
|
||||
"pattern": "^trixie-[A-Za-z0-9T_.-]+\\.dump$",
|
||||
"maxLength": 128
|
||||
},
|
||||
"confirmation": { "const": "RESTORE" },
|
||||
"emergency_override": { "type": "boolean", "default": false }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user