refactor: move versioning efforts to initalization

This commit is contained in:
Alexandre Teles
2023-11-21 01:51:44 -03:00
committed by Alexandre Teles (afterSt0rm)
parent 8d36663610
commit 42c88290b1
14 changed files with 101 additions and 49 deletions

View File

@@ -11,7 +11,7 @@ class SocialFields(BaseModel):
preferred: bool
class SocialsResponseModel(BaseModel):
class ConnectionsResponseModel(BaseModel):
"""
A Pydantic BaseModel that represents a dictionary of social links.
"""
@@ -21,3 +21,15 @@ class SocialsResponseModel(BaseModel):
A dictionary where the keys are the names of the social networks, and
the values are the links to the profiles or pages.
"""
class ConnectionsResponseModel(BaseModel):
"""
A Pydantic BaseModel that represents a dictionary of connection links.
"""
connections: list[SocialFields]
"""
A dictionary where the keys are the names of the social networks, and
the values are the links to the profiles or pages.
"""