Skip to content

Commit

Permalink
fix: class Config deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
samderanova committed Dec 15, 2023
1 parent dfc0882 commit 3b0fc57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/models/ApplicationData.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from enum import Enum
from typing import Optional

from pydantic import BaseModel, EmailStr, Field, HttpUrl
from pydantic import BaseModel, ConfigDict, EmailStr, Field, HttpUrl

from .utils import form_body

Expand All @@ -18,6 +18,8 @@ class Decision(str, Enum):

@form_body
class RawApplicationData(BaseModel):
model_config = ConfigDict(str_strip_whitespace=True, str_max_length=254)

first_name: str
last_name: str
email: EmailStr
Expand Down

0 comments on commit 3b0fc57

Please sign in to comment.