feat: use objects for contact field

This commit is contained in:
Ushie
2023-08-20 00:06:52 +03:00
parent ffdb976f2c
commit 5922830e0b
2 changed files with 11 additions and 5 deletions

View File

@@ -2,15 +2,21 @@ from api.models.donations import DonationFields
from api.models.socials import SocialFields
from pydantic import BaseModel
class ContactFields(BaseModel):
"""
Implements the fields for the API owner contact info.
"""
email: str
class InfoFields(BaseModel):
"""
Implements the fields for a API owner info.
Implements the fields for the API owner info.
"""
name: str
about: str
contact: dict[str, str]
contact: ContactFields
socials: list[SocialFields]
donations: DonationFields