forked from sr2/cloud-api
minor: min length on group name post
This commit is contained in:
parent
e4559b8ee4
commit
3ea782d68f
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ Models follow the nomenclature of:
|
|||
"""
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import EmailStr, ConfigDict
|
||||
from pydantic import EmailStr, ConfigDict, Field
|
||||
|
||||
from src.organisation.schemas import OrgIDMixin
|
||||
from src.schemas import CustomBaseModel
|
||||
|
|
@ -45,7 +45,7 @@ class IAMGetGroupUsersResponse(CustomBaseModel):
|
|||
users : list[UserSchema]
|
||||
|
||||
class IAMPostGroupRequest(OrgIDMixin):
|
||||
name: str
|
||||
name: str = Field(min_length=3)
|
||||
|
||||
class IAMPostGroupResponse(CustomBaseModel):
|
||||
group: GroupSchema
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue