feat: Semaine 8
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
class LoginForm(BaseModel):
|
||||
username: str = Field(min_length=1, max_length=64)
|
||||
password: str = Field(min_length=1, max_length=256)
|
||||
|
||||
class CreateSecretForm(BaseModel):
|
||||
name: str = Field(min_length=1, max_length=256)
|
||||
value: str = Field(min_length=1)
|
||||
team_id: int
|
||||
|
||||
class RotateSecretForm(BaseModel):
|
||||
new_value: str = Field(min_length=1)
|
||||
expected_version: int
|
||||
Reference in New Issue
Block a user