initial commit
This commit is contained in:
13
core/api/schemas.py
Normal file
13
core/api/schemas.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from typing import Optional
|
||||
|
||||
from ninja import Schema
|
||||
|
||||
|
||||
class MessageSchema(Schema):
|
||||
message: str
|
||||
|
||||
|
||||
class ErrorSchema(Schema):
|
||||
error: str
|
||||
details: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user