Skip to content

Commit

Permalink
Fix for API Json Schema (#705)
Browse files Browse the repository at this point in the history
Signed-off-by: GBBBAS <[email protected]>
  • Loading branch information
GBBBAS authored Mar 15, 2024
1 parent 2da3e74 commit fb5897f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ class HTTPError(BaseModel):
detail: str

class Config:
json_schema_extra = (
{
"example": {"detail": "HTTPException raised."},
},
)
json_schema_extra = {"example": {"detail": "HTTPException raised."}}


class BaseHeaders:
Expand Down

0 comments on commit fb5897f

Please sign in to comment.