"""Generic response schemas used across multiple modules."""
from pydantic import BaseModel
from typing import Optional, List


class MessageResponse(BaseModel):
    """Generic message response."""
    message: str


class CountResponse(BaseModel):
    """Generic count response."""
    count: int


class ErrorResponse(BaseModel):
    """Standard error response."""
    detail: str


class ValidationErrorResponse(BaseModel):
    """Validation error response."""
    detail: List[dict]


class ErrorDetail(BaseModel):
    """Error detail."""
    error: str
    detail: str
