py-gidb/pygidb/types/api.py

13 lines
207 B
Python
Raw Normal View History

2023-11-12 22:44:51 +03:00
from typing import Any
from pydantic import BaseModel
class ErrorData(BaseModel):
error_code: int
error_text: str
class Response(BaseModel):
error: bool = False
response: Any | ErrorData