From 65018af7a0e1cb287f525260c6f769dffe72ff6c Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Sun, 25 Oct 2026 05:20:32 +0100 Subject: [PATCH] add backup inventory contract --- contracts/v1/backup-list-response.json | 14 ++++++++++++++ fixtures/v1/backup-list.response.json | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 contracts/v1/backup-list-response.json create mode 100644 fixtures/v1/backup-list.response.json diff --git a/contracts/v1/backup-list-response.json b/contracts/v1/backup-list-response.json new file mode 100644 index 0000000..920ef06 --- /dev/null +++ b/contracts/v1/backup-list-response.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["filename", "size_bytes", "modified_at"], + "properties": { + "filename": { "type": "string" }, + "size_bytes": { "type": "integer", "minimum": 0 }, + "modified_at": { "type": ["string", "null"] } + } + } +} diff --git a/fixtures/v1/backup-list.response.json b/fixtures/v1/backup-list.response.json new file mode 100644 index 0000000..ed496f0 --- /dev/null +++ b/fixtures/v1/backup-list.response.json @@ -0,0 +1,7 @@ +[ + { + "filename": "trixie-20261025T030000Z.dump", + "size_bytes": 4096, + "modified_at": "2026-10-25T03:00:01Z" + } +]