diff options
author | 2021-03-06 19:54:33 +0000 | |
---|---|---|
committer | 2021-03-06 19:54:33 +0000 | |
commit | 0f363c26271594de42ee05bb59a99e99c6e12de1 (patch) | |
tree | 2e409cac18da2f976b5593065a185cec01e90c85 /backend/validation.py | |
parent | Merge pull request #62 from python-discord/dependabot/pip/uvicorn-0.13.4 (diff) | |
parent | Merge branch 'main' into token-expiry (diff) |
Merge pull request #58 from python-discord/token-expiry
Diffstat (limited to 'backend/validation.py')
-rw-r--r-- | backend/validation.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/backend/validation.py b/backend/validation.py index e696683..8771924 100644 --- a/backend/validation.py +++ b/backend/validation.py @@ -1,6 +1,5 @@ """Utilities for providing API payload validation.""" -from typing import Optional from pydantic.fields import Field from pydantic.main import BaseModel from spectree import SpecTree @@ -18,13 +17,3 @@ class ErrorMessage(BaseModel): class OkayResponse(BaseModel): status: str = "ok" - - -class AuthorizationHeaders(BaseModel): - authorization: Optional[str] = Field( - title="Authorization", - description=( - "The Authorization JWT token received from the " - "authorize route in the format `JWT {token}`" - ) - ) |