1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-24 23:47:49 +00:00

WIP more serializer stuff

This commit is contained in:
Ethan Paul 2020-02-23 20:23:42 -05:00
parent 199cad3f43
commit 85a53d061a

View File

@ -21,18 +21,9 @@ class DomainSerializer(msh.Schema):
enable_refresh = msh.fields.Boolean(required=True, data_key="enable-refresh") enable_refresh = msh.fields.Boolean(required=True, data_key="enable-refresh")
lifespan_access = msh.fields.Boolean(required=True, data_key="lifespan-access") lifespan_access = msh.fields.Boolean(required=True, data_key="lifespan-access")
lifespan_refresh = msh.fields.Boolean(required=True, data_key="lifespan-refresh") lifespan_refresh = msh.fields.Boolean(required=True, data_key="lifespan-refresh")
access_lists = msh.fields.List() access_list_names = msh.fields.List(
msh.fields.String(), required=True, data_key="access-lists"
# created = peewee.DateTimeField(null=False, default=datetime.datetime.utcnow) )
# updated = peewee.DateTimeField(null=False, default=datetime.datetime.utcnow) permission_names = msh.fields.List(
# name = peewee.CharField(null=False, unique=True) msh.fields.String(), required=True, data_key="permissions"
# audience = peewee.CharField(null=False, unique=True) )
# title = peewee.CharField(null=True)
# description = peewee.CharField(null=True)
# contact = peewee.CharField(null=True)
# enabled = peewee.BooleanField(null=False)
# enable_client_set_auth = peewee.BooleanField(null=False)
# enable_server_set_auth = peewee.BooleanField(null=False)
# enable_refresh = peewee.BooleanField(null=False)
# lifespan_access = peewee.IntegerField(null=False)
# lifespan_refresh = peewee.IntegerField(null=False)