We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af59e6d commit d97fc57Copy full SHA for d97fc57
src/models/responses.py
@@ -436,7 +436,11 @@ class AuthorizedResponse(BaseModel):
436
class UnauthorizedResponse(BaseModel):
437
"""Model representing response for missing or invalid credentials."""
438
439
- detail: str
+ detail: str = Field(
440
+ ...,
441
+ description="Details about the authorization issue",
442
+ examples=["Missing or invalid credentials provided by client"],
443
+ )
444
445
# provides examples for /docs endpoint
446
model_config = {
0 commit comments