Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long-description to zimit #1044

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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