From 7ba211a19ae0d558cbe62d89963fcb2b8e13d23a Mon Sep 17 00:00:00 2001 From: benoit74 Date: Thu, 28 Sep 2023 20:47:21 +0200 Subject: [PATCH] Add missing validator for gutenberg --- dispatcher/backend/src/common/schemas/offliners/gutenberg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dispatcher/backend/src/common/schemas/offliners/gutenberg.py b/dispatcher/backend/src/common/schemas/offliners/gutenberg.py index 3c66028c..f3d43824 100644 --- a/dispatcher/backend/src/common/schemas/offliners/gutenberg.py +++ b/dispatcher/backend/src/common/schemas/offliners/gutenberg.py @@ -1,7 +1,9 @@ from marshmallow import fields from common.schemas import SerializableSchema, String - +from common.schemas.fields import ( + validate_zim_description, +) class GutenbergFlagsSchema(SerializableSchema): class Meta: @@ -38,6 +40,7 @@ class Meta: zim_desc = String( metadata={"label": "Description", "description": "Description for ZIM"}, data_key="zim-desc", + validate=validate_zim_description, ) books = String(