mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 12:01:12 +02:00
annotation for optional attributes
This commit is contained in:
@@ -2,6 +2,7 @@ from sqlite3 import Row
|
||||
|
||||
from fastapi.param_functions import Query
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class CreateUserData(BaseModel):
|
||||
@@ -22,8 +23,8 @@ class Users(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
admin: str
|
||||
email: str
|
||||
password: str
|
||||
email: Optional[str] = None
|
||||
password: Optional[str] = None
|
||||
|
||||
|
||||
class Wallets(BaseModel):
|
||||
|
Reference in New Issue
Block a user