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
|
|
@ -578,19 +578,19 @@ class ScanExtension(BaseExtension):
|
|||
|
||||
|
||||
class TileScanArgs(FullCaptureArgs):
|
||||
namemode = fields.String(missing="coordinates", example="coordinates")
|
||||
namemode = fields.String(load_default="coordinates", example="coordinates")
|
||||
grid = fields.List(
|
||||
fields.Integer(validate=marshmallow.validate.Range(min=1)),
|
||||
missing=[3, 3, 3],
|
||||
load_default=[3, 3, 3],
|
||||
example=[3, 3, 3],
|
||||
)
|
||||
style = fields.String(missing="raster")
|
||||
autofocus_dz = fields.Integer(missing=50)
|
||||
fast_autofocus = fields.Boolean(missing=False)
|
||||
style = fields.String(load_default="raster")
|
||||
autofocus_dz = fields.Integer(load_default=50)
|
||||
fast_autofocus = fields.Boolean(load_default=False)
|
||||
stride_size = fields.List(
|
||||
fields.Integer, missing=[2000, 1500, 100], example=[2000, 1500, 100]
|
||||
fields.Integer, load_default=[2000, 1500, 100], example=[2000, 1500, 100]
|
||||
)
|
||||
detect_empty_fields_and_skip_autofocus = fields.Boolean(missing=False)
|
||||
detect_empty_fields_and_skip_autofocus = fields.Boolean(load_default=False)
|
||||
|
||||
|
||||
class TileScanAPI(ActionView):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue