from dataclasses import dataclass
from typing import Optional

from ._BaseModel import BaseModel
from ._ContactModel import ContactModel
from ._LicenseModel import LicenseModel


@dataclass
class InfoModel(BaseModel):
    title: str
    version: str
    description: Optional[str] = None
    terms_of_service: Optional[str] = None
    contact: Optional[ContactModel] = None
    license: Optional[LicenseModel] = None
