mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
refactor: derive update schemas with PartialUpdateModel
This commit is contained in:
34 files changed
+276
-70
No files matched your search
@@ -20,6 +20,7 @@ from uuid import UUID
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, EmailStr, Field, SecretStr
|
||||
|
||||
from ..update import PartialUpdateModel
|
||||
from .base import DateTimeModelMixin
|
||||
|
||||
|
||||
@@ -43,7 +44,7 @@ class UserCreate(UserBase):
|
||||
password: SecretStr = Field(..., min_length=8, max_length=100)
|
||||
|
||||
|
||||
class UserUpdate(UserBase):
|
||||
class UserUpdate(PartialUpdateModel, UserBase):
|
||||
"""
|
||||
Properties to update a user.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user