mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-04 21:57:02 +00:00
WIP more serializer stuff
This commit is contained in:
parent
199cad3f43
commit
85a53d061a
@ -21,18 +21,9 @@ class DomainSerializer(msh.Schema):
|
||||
enable_refresh = msh.fields.Boolean(required=True, data_key="enable-refresh")
|
||||
lifespan_access = msh.fields.Boolean(required=True, data_key="lifespan-access")
|
||||
lifespan_refresh = msh.fields.Boolean(required=True, data_key="lifespan-refresh")
|
||||
access_lists = msh.fields.List()
|
||||
|
||||
# created = peewee.DateTimeField(null=False, default=datetime.datetime.utcnow)
|
||||
# updated = peewee.DateTimeField(null=False, default=datetime.datetime.utcnow)
|
||||
# name = peewee.CharField(null=False, unique=True)
|
||||
# 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)
|
||||
access_list_names = msh.fields.List(
|
||||
msh.fields.String(), required=True, data_key="access-lists"
|
||||
)
|
||||
permission_names = msh.fields.List(
|
||||
msh.fields.String(), required=True, data_key="permissions"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user