From 3ea782d68fed41bfd5bd2d4e1dedd5cc1f25674a Mon Sep 17 00:00:00 2001 From: luxferre Date: Tue, 2 Jun 2026 13:37:42 +0100 Subject: [PATCH] minor: min length on group name post --- src/iam/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iam/schemas.py b/src/iam/schemas.py index 3f34390..d30ea4b 100644 --- a/src/iam/schemas.py +++ b/src/iam/schemas.py @@ -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