More Marshmallow argument updates
This commit is contained in:
parent
e22f36b308
commit
9dbb083ee7
18 changed files with 102 additions and 87 deletions
|
|
@ -24,7 +24,7 @@ class RaiseException(ActionView):
|
|||
|
||||
class SleepFor(ActionView):
|
||||
schema = {"TimeAsleep": fields.Float()}
|
||||
args = {"time": fields.Float(metadata={"description": "Time to sleep, in seconds"}, example=0.5)}
|
||||
args = {"time": fields.Float(metadata={"description": "Time to sleep, in seconds", "example": 0.5})}
|
||||
|
||||
def post(self, args):
|
||||
sleep_time: int = args.get("time", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue