From aa12afa34d05ead9760505b58dd87845214bb228 Mon Sep 17 00:00:00 2001 From: "Kafonek, Matt" Date: Fri, 9 Apr 2021 15:01:03 +0000 Subject: [PATCH] User groups is List[str] not List[Group] --- examples/service-fastapi/app/models.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/service-fastapi/app/models.py b/examples/service-fastapi/app/models.py index 7092d393..c3751053 100644 --- a/examples/service-fastapi/app/models.py +++ b/examples/service-fastapi/app/models.py @@ -7,11 +7,6 @@ from pydantic import BaseModel # https://jupyterhub.readthedocs.io/en/stable/_static/rest-api/index.html -class Group(BaseModel): - name: str - users: List[str] - - class Server(BaseModel): name: str ready: bool @@ -27,7 +22,7 @@ class Server(BaseModel): class User(BaseModel): name: str admin: bool - groups: List[Group] + groups: List[str] server: Optional[str] pending: Optional[str] last_activity: datetime