You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-23 00:27:12 +00:00
chore: small codebase improvements
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from http import HTTPStatus as status
|
||||
from typing import Any
|
||||
|
||||
from ninja import Schema
|
||||
|
||||
@@ -11,9 +12,9 @@ class NotFoundError(Schema):
|
||||
detail: str = status.NOT_FOUND.phrase
|
||||
|
||||
|
||||
class ValidationError(Schema):
|
||||
detail: str
|
||||
class BadRequestError(Schema):
|
||||
detail: Any
|
||||
|
||||
|
||||
class UniqueConstraintError(Schema):
|
||||
detail: str
|
||||
detail: Any
|
||||
|
||||
Reference in New Issue
Block a user