from pydantic import BaseModel from typing import Optional class Attribute(BaseModel): value: Optional[str] type: Optional[str] id: str