Start explicit metadata argument for marshmallow
A side effect of re-locking dependencies is having a newer marshmallow. This deprecates having `description=` as a keyword, and puts it in a separate metadata arg instead. This commit is the start of my search-and-replaceing to update to the new format.
This commit is contained in:
parent
78ef9c531b
commit
e22f36b308
14 changed files with 58 additions and 58 deletions
|
|
@ -59,7 +59,7 @@ class CaptureSchema(ImageSchema):
|
|||
# without the server having to do a tonne of file IO
|
||||
dataset = fields.Nested(BasicDatasetSchema())
|
||||
file = fields.String(
|
||||
data_key="path", description="Path of file on microscope device"
|
||||
data_key="path", metadata={"description": "Path of file on microscope device"}
|
||||
)
|
||||
# No need to make a schema for links as we only ever
|
||||
# create the dictionary right here in `generate_links`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue