File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
dispatcher/backend/src/common/schemas/offliners Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
from marshmallow import fields , validate
2
2
3
- from common .schemas import SerializableSchema , String , StringEnum
3
+ from common .schemas import LongString , SerializableSchema , String , StringEnum
4
4
from common .schemas .fields import (
5
5
validate_output ,
6
6
validate_zim_description ,
7
7
validate_zim_filename ,
8
+ validate_zim_longdescription ,
8
9
validate_zim_title ,
9
10
)
10
11
@@ -185,6 +186,15 @@ class Meta:
185
186
validate = validate_zim_description ,
186
187
)
187
188
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
+
188
198
favicon = fields .Url (
189
199
metadata = {
190
200
"label" : "Illustration" ,
You can’t perform that action at this time.
0 commit comments