-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Model classes built on BaseModel class are having conflict with their attributes and another class with the same name when we do hashing (for schema generation)
Change this :
class SomeClass(BaseModel):
BigApple: int = 0
to this:
def to_camel(string: str) -> str:
return ''.join(word.capitalize() for word in string.split('_'))
class SomeClass(BaseModel):
big_apple: int = 0
class Config:
alias_generator = to_camel
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers