feat: minimum lengths for names
All checks were successful
ci / lint_and_test (push) Successful in 15s
All checks were successful
ci / lint_and_test (push) Successful in 15s
This commit is contained in:
parent
092e12a892
commit
43ed768f66
4 changed files with 13 additions and 15 deletions
|
|
@ -9,7 +9,7 @@ Models follow the nomenclature of:
|
|||
from typing import Optional
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import EmailStr, ConfigDict
|
||||
from pydantic import EmailStr, ConfigDict, Field
|
||||
|
||||
from src.schemas import (
|
||||
CustomBaseModel,
|
||||
|
|
@ -55,7 +55,7 @@ class OrgSchema(OrgIDMixin):
|
|||
|
||||
|
||||
class OrgPostOrgRequest(CustomBaseModel):
|
||||
name: str
|
||||
name: str = Field(min_length=3)
|
||||
intake_questionnaire: Optional[CurrentQuestions] = None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue