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