refactor(base): replace to_camel to to_camel from pydantic

This commit is contained in:
Vladislav Syrochkin 2025-05-21 14:51:09 +05:00
parent fe91bb7103
commit 78f8014aca
2 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,5 @@
from pydantic import BaseModel, ConfigDict
from api.utils.mapper import to_camel
from pydantic.alias_generators import to_camel
class Base(BaseModel):

View File

@ -1,3 +0,0 @@
def to_camel(string: str) -> str:
splitted = string.split("_")
return splitted[0] + "".join(word.capitalize() for word in splitted[1:])