From 6b96057fdb8fe06ccc8455d1c5a4b5890df34dcd Mon Sep 17 00:00:00 2001 From: Uchechukwu Orji Date: Fri, 12 Jun 2026 16:26:12 +0100 Subject: [PATCH] add zim metadata to offliner spec --- offliner-definition.json | 44 +++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/offliner-definition.json b/offliner-definition.json index 2ce4278..e0b3122 100644 --- a/offliner-definition.json +++ b/offliner-definition.json @@ -40,24 +40,24 @@ "required": true, "title": "ZIM title", "description": "Title of the ZIM.", - "minLength": 1, - "maxLength": 30 + "minGraphemes": 1, + "maxGraphemes": 30 }, "description": { "type": "string", "required": true, "title": "ZIM description", "description": "Description of the ZIM.", - "minLength": 1, - "maxLength": 80 + "minGraphemes": 1, + "maxGraphemes": 80 }, "long_description": { "type": "string", "required": false, "title": "ZIM long description", "description": "Long description of the ZIM.", - "minLength": 1, - "maxLength": 4000 + "minGraphemes": 1, + "maxGraphemes": 4000 }, "tags": { "type": "string", @@ -149,5 +149,35 @@ "description": "Output folder for ZIM file(s). Leave it as `/output`", "pattern": "^/output$" } - } + }, + "zimMetadata": [ + { + "metadata": "Name", + "flag": "name" + }, + { + "metadata": "Title", + "flag": "title" + }, + { + "metadata": "Description", + "flag": "description" + }, + { + "metadata": "LongDescription", + "flag": "long_description" + }, + { + "metadata": "Creator", + "flag": "creator" + }, + { + "metadata": "Publisher", + "flag": "publisher" + }, + { + "metadata": "Illustration", + "flag": "illustration_url" + } + ] }