diff --git a/api/models/info.py b/api/models/info.py index 208b282..a4c5987 100644 --- a/api/models/info.py +++ b/api/models/info.py @@ -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 diff --git a/config.py b/config.py index ffea30c..2bd0698 100644 --- a/config.py +++ b/config.py @@ -116,9 +116,9 @@ links: list[dict[str, str | bool]] = [ default_info: dict[str, str | list[str | bool] | bool] = { "name": owner, "about": "ReVanced was born out of Vanced's discontinuation and it is our goal to continue the legacy of what Vanced left behind. Thanks to ReVanced Patcher, it's possible to create long-lasting patches for nearly any Android app. ReVanced's patching system is designed to allow patches to work on new versions of the apps automatically with bare minimum maintenance.", - "contact": [ - {"method": "mail", "value": "contact@revanced.app"}, - ], + "contact": { + "email": "contact@revanced.app" + }, "socials": social_links, "donations": {"wallets": wallets, "links": links}, }