Skip to content

Commit 554aae2

Browse files
authored
Merge pull request #1044 from openzim/zimit_long_desc
Add long-description to zimit
2 parents 2587474 + 7b8909e commit 554aae2

File tree

1 file changed

+11
-1
lines changed
  • dispatcher/backend/src/common/schemas/offliners

1 file changed

+11
-1
lines changed

dispatcher/backend/src/common/schemas/offliners/zimit.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from marshmallow import fields, validate
22

3-
from common.schemas import SerializableSchema, String, StringEnum
3+
from common.schemas import LongString, SerializableSchema, String, StringEnum
44
from common.schemas.fields import (
55
validate_output,
66
validate_zim_description,
77
validate_zim_filename,
8+
validate_zim_longdescription,
89
validate_zim_title,
910
)
1011

@@ -185,6 +186,15 @@ class Meta:
185186
validate=validate_zim_description,
186187
)
187188

189+
long_description = LongString(
190+
metadata={
191+
"label": "Long description",
192+
"description": "Optional long description for your ZIM",
193+
},
194+
validate=validate_zim_longdescription,
195+
data_key="long-description",
196+
)
197+
188198
favicon = fields.Url(
189199
metadata={
190200
"label": "Illustration",

0 commit comments

Comments
 (0)