from pydantic import BaseModel from typing import List from models.metadata import MetaData class Item(BaseModel): id: int metadata: List[MetaData]