diff --git a/contracts/v1/backup-run-response.json b/contracts/v1/backup-run-response.json new file mode 100644 index 0000000..a413176 --- /dev/null +++ b/contracts/v1/backup-run-response.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "required": ["status", "filename", "reason"], + "properties": { + "status": { "type": "string", "enum": ["ok", "failed"] }, + "filename": { "type": ["string", "null"] }, + "reason": { "type": ["string", "null"] } + } +} diff --git a/fixtures/v1/backup-run.response.json b/fixtures/v1/backup-run.response.json new file mode 100644 index 0000000..df239b9 --- /dev/null +++ b/fixtures/v1/backup-run.response.json @@ -0,0 +1,5 @@ +{ + "status": "ok", + "filename": "trixie-20261025T030000Z.dump", + "reason": null +}