init
Some checks failed
CI/CD / Backend & Frontend Checks (push) Has been cancelled
CI/CD / Deploy to Production (push) Has been cancelled

This commit is contained in:
2026-05-18 11:34:07 +03:30
commit 7a8ddeabed
279 changed files with 37390 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
"""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()