You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I generate pydantic classes from a class diagram, associations are not considered (i.e. no attribute is added to manage the association in any of thec classes)
Expected behavior
Attributes to manage the association should be part of the generation
Same for inheritance relationships
Screenshots
This model
Generates this code
############################################
Classes are defined here
############################################
class Employee(BaseModel):
id: int
salary: int
id: int # id created
class Department(Unit):
name: str
id: int # id created
class Unit(BaseModel):
size: int
id: int # id created
The text was updated successfully, but these errors were encountered:
Describe the bug
If I generate pydantic classes from a class diagram, associations are not considered (i.e. no attribute is added to manage the association in any of thec classes)
Expected behavior
Attributes to manage the association should be part of the generation
Same for inheritance relationships
Screenshots
This model
Generates this code
############################################
Classes are defined here
############################################
class Employee(BaseModel):
id: int
salary: int
id: int # id created
class Department(Unit):
name: str
id: int # id created
class Unit(BaseModel):
size: int
id: int # id created
The text was updated successfully, but these errors were encountered: