minor: min length on group name post

This commit is contained in:
Chris Milne 2026-06-02 13:37:42 +01:00
parent e4559b8ee4
commit 3ea782d68f

View file

@ -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