From cfc928627a08b03ca1ec5bd32afe6a137c1b176e Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Wed, 10 Jul 2024 16:44:03 +0100 Subject: [PATCH] Added `edited` field to the image schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs [ENG-1260](https://linear.app/tryghost/issue/ENG-1260/🔒-redacting-pictures-in-pintura-leaves-easily-findable-original-image) Added `edited` field to the image schema to track if an image uploaded is a new image or an edited version of an existing image --- packages/admin-api-schema/lib/schemas/images.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/admin-api-schema/lib/schemas/images.json b/packages/admin-api-schema/lib/schemas/images.json index 170867f4d..7be6b0666 100644 --- a/packages/admin-api-schema/lib/schemas/images.json +++ b/packages/admin-api-schema/lib/schemas/images.json @@ -16,6 +16,11 @@ "ref": { "type": ["string", "null"], "maxLength": 2000 + }, + "edited": { + "type": "string", + "enum": ["true", "false"], + "default": "false" } } }