Skip to content

Commit

Permalink
Add missing validator for gutenberg
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Sep 28, 2023
1 parent 35a4d4c commit 7ba211a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dispatcher/backend/src/common/schemas/offliners/gutenberg.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 7ba211a

Please sign in to comment.