mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-30 06:34:36 +02:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
24 lines
471 B
Python
24 lines
471 B
Python
from api.models.donations import DonationFields
|
|
from api.models.socials import SocialFields
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class InfoFields(BaseModel):
|
|
"""
|
|
Implements the fields for a API owner info.
|
|
"""
|
|
|
|
name: str
|
|
about: str
|
|
contact: dict[str, str]
|
|
socials: SocialFields
|
|
donations: DonationFields
|
|
|
|
|
|
class InfoResponseModel(BaseModel):
|
|
"""
|
|
A Pydantic BaseModel that represents a dictionary of info.
|
|
"""
|
|
|
|
info: InfoFields
|