1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-12-26 01:33:33 +00:00

!fixup account serializer

This commit is contained in:
Ethan Paul 2020-02-24 21:28:47 -05:00
parent ac893d9707
commit f7d93bd68c

View File

@ -15,7 +15,7 @@ class AccountSerializer(msh.Schema):
enabled = msh.fields.Boolean(required=True)
extras = msh.fields.Dict(
keys=msh.fields.String(),
values=custom_fields.RawMultiType([int, float, bool, str, None]),
values=custom_fields.RawMultiType([int, float, bool, str], allow_none=True),
required=True,
)
acls = msh.fields.List(msh.fields.Nested(AccountACLSerializer), required=True)