More Marshmallow argument updates

This commit is contained in:
Richard Bowman 2022-08-09 13:16:10 +01:00
parent e22f36b308
commit 9dbb083ee7
18 changed files with 102 additions and 87 deletions

View file

@ -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)