allow none
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-12-07 01:37:43 +01:00
parent ae07fbfb33
commit 5158144c48

View File

@ -49,7 +49,7 @@ class IngestInputSchema(ma.Schema):
class EncodeInputSchema(ma.Schema): class EncodeInputSchema(ma.Schema):
inputNeighbour = fields.UUID(required=False) inputNeighbour = fields.UUID(required=False, allow_none=True)
outputNeighbours = fields.List(fields.UUID(), required=False) outputNeighbours = fields.List(fields.UUID(), required=False)
bitrate = fields.Integer(required=False) bitrate = fields.Integer(required=False)
width = fields.Integer(required=False) width = fields.Integer(required=False)
@ -59,7 +59,7 @@ class EncodeInputSchema(ma.Schema):
class RestreamInputSchema(ma.Schema): class RestreamInputSchema(ma.Schema):
inputNeighbour = fields.UUID(required=False) inputNeighbour = fields.UUID(required=False, allow_none=True)
outputURLs = fields.List(fields.String(), required=False) outputURLs = fields.List(fields.String(), required=False)
x = fields.Integer(required=True) x = fields.Integer(required=True)
y = fields.Integer(required=True) y = fields.Integer(required=True)