Skip to content

Commit c80e45f

Browse files
author
Joel Collins
committed
Added alias to Marshmallow pre_dump and pre_load
1 parent 6b41db8 commit c80e45f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/labthings/server/schema.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# -*- coding: utf-8 -*-
22
from flask import url_for
33
from werkzeug.routing import BuildError
4-
from marshmallow import Schema, pre_dump
4+
from marshmallow import Schema, pre_load, pre_dump
55
from collections.abc import Mapping
66

77
from .names import TASK_ENDPOINT, EXTENSION_LIST_ENDPOINT
88
from .utilities import view_class_from_endpoint, description_from_view
99
from . import fields
1010

11-
__all__ = ["Schema", "FieldSchema", "TaskSchema", "ExtensionSchema"]
11+
__all__ = [
12+
"Schema",
13+
"FieldSchema",
14+
"TaskSchema",
15+
"ExtensionSchema",
16+
"pre_load",
17+
"pre_dump",
18+
]
1219

1320

1421
class FieldSchema(Schema):

0 commit comments

Comments
 (0)