fix: fix token revogation

This commit is contained in:
Alexandre Teles
2022-10-17 16:57:29 -03:00
parent 07800c4d62
commit 2d3e62addf
33 changed files with 101 additions and 80 deletions

View File

@ -43,4 +43,4 @@ class AnnouncementDeleted(BaseModel):
BaseModel (pydantic.BaseModel): BaseModel from pydantic
"""
deleted: bool
deleted: bool

View File

@ -21,4 +21,3 @@ class ClientAuthModel(BaseModel):
id: str
secret: str

View File

@ -68,4 +68,4 @@ class MirrorAlreadyExistsError(BaseModel):
"""
error: str = "Conflict"
message: str = "A mirror already exists for the organization, repository, and version provided. Please use the PUT method to update the mirror."
message: str = "A mirror already exists for the organization, repository, and version provided. Please use the PUT method to update the mirror."

View File

@ -49,4 +49,4 @@ class MirrorDeletedResponseModel(BaseModel):
BaseModel (pydantic.BaseModel): BaseModel from pydantic
"""
deleted: bool
key: str
key: str

View File

@ -74,4 +74,4 @@ class ChangelogsResponseFields(BaseModel):
sha: str
author: str
message: str
html_url: str
html_url: str

View File

@ -97,4 +97,13 @@ class ChangelogsResponseModel(BaseModel):
repository: str
path: str
commits: list[ ResponseFields.ChangelogsResponseFields ]
commits: list[ ResponseFields.ChangelogsResponseFields ]
class RevokedTokenResponse(BaseModel):
"""Implements the response fields for token invalidation.
Args:
BaseModel (pydantic.BaseModel): BaseModel from pydantic
"""
revoked: bool