You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from pydantic import BaseModel |
|
from typing import List, Optional, Any |
|
|
|
class ErrorResponse(BaseModel): |
|
error: str |
|
detail: Optional[str] = None |
|
code: Optional[str] = None |
|
|
|
class PaginatedResponse(BaseModel): |
|
items: List[Any] |
|
total: int |
|
page: int |
|
size: int |
|
pages: int
|
|
|