Files
Amirhossein Khalili 7a8ddeabed
Some checks failed
CI/CD / Backend & Frontend Checks (push) Has been cancelled
CI/CD / Deploy to Production (push) Has been cancelled
init
2026-05-18 11:34:07 +03:30

32 lines
747 B
Python

"""Aggregate exports for API schemas and shared response payloads."""
from typing import Optional
from ninja import Schema
from api.schemas.auth import *
from api.schemas.blog import *
from api.schemas.gallery import *
from api.schemas.events import *
from api.schemas.communications import *
from api.schemas.certificates import *
class MessageSchema(Schema):
"""Basic success response containing a message."""
message: str
class ErrorSchema(Schema):
"""Standard error payload with optional details."""
error: str
details: Optional[str] = None
def rebuild_comment_schema() -> None:
"""Ensure the self-referential CommentSchema is fully initialized."""
CommentSchema.model_rebuild()
rebuild_comment_schema()