Compare commits
1 Commits
86d48d0d1c
...
78f8014aca
Author | SHA1 | Date | |
---|---|---|---|
78f8014aca |
@ -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):
|
||||
|
@ -1,3 +0,0 @@
|
||||
def to_camel(string: str) -> str:
|
||||
splitted = string.split("_")
|
||||
return splitted[0] + "".join(word.capitalize() for word in splitted[1:])
|
Loading…
Reference in New Issue
Block a user