Skip to content

Commit

Permalink
Merge pull request #1044 from openzim/zimit_long_desc
Browse files Browse the repository at this point in the history
Add long-description to zimit
  • Loading branch information
benoit74 authored Nov 5, 2024
2 parents 2587474 + 7b8909e commit 554aae2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dispatcher/backend/src/common/schemas/offliners/zimit.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from marshmallow import fields, validate

from common.schemas import SerializableSchema, String, StringEnum
from common.schemas import LongString, SerializableSchema, String, StringEnum
from common.schemas.fields import (
validate_output,
validate_zim_description,
validate_zim_filename,
validate_zim_longdescription,
validate_zim_title,
)

Expand Down Expand Up @@ -185,6 +186,15 @@ class Meta:
validate=validate_zim_description,
)

long_description = LongString(
metadata={
"label": "Long description",
"description": "Optional long description for your ZIM",
},
validate=validate_zim_longdescription,
data_key="long-description",
)

favicon = fields.Url(
metadata={
"label": "Illustration",
Expand Down

0 comments on commit 554aae2

Please sign in to comment.