changed LoginModel to also allow LoginInfoResponse
This commit is contained in:
parent
7a7fde46d3
commit
3dbb3fb7ac
@ -0,0 +1,4 @@
|
||||
Use ```bash
|
||||
uv build
|
||||
```
|
||||
to build package. Then git commit & push.
|
||||
@ -10,6 +10,10 @@ class LoginInfo:
|
||||
refresh_tokens: list[str] = field(default_factory=list)
|
||||
disabled: bool = False
|
||||
|
||||
@dataclass(slots=True)
|
||||
class LoginInfoResponse:
|
||||
username: str
|
||||
|
||||
@dataclass(slots=True)
|
||||
class Address:
|
||||
street: str
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from .submodels import LoginInfo
|
||||
from .submodels import LoginInfo, LoginInfoResponse
|
||||
|
||||
class LoginModel(BaseModel):
|
||||
login: LoginInfo
|
||||
login: LoginInfo | LoginInfoResponse
|
||||
Loading…
x
Reference in New Issue
Block a user