Add backup restore contracts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://trixie.local/contracts/v1/backup-restore-response.json",
|
||||
"title": "Backup restore response",
|
||||
"type": "object",
|
||||
"required": ["status", "filename", "reason"],
|
||||
"properties": {
|
||||
"status": { "type": "string", "enum": ["ok", "failed"] },
|
||||
"filename": { "type": "string" },
|
||||
"reason": { "type": ["string", "null"] }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user