Skip to content

Commit dadf08a

Browse files
committed
fix: make client id optional too since it can be filled in Swagger UI
1 parent d2e58f9 commit dadf08a

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/event_handler/openapi/swagger_ui

1 file changed

+1
-1
lines changed

aws_lambda_powertools/event_handler/openapi/swagger_ui/oauth2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class OAuth2Config(BaseModel):
1414
"""
1515

1616
# The client ID for the OAuth2 application
17-
clientId: str = Field(alias="client_id")
17+
clientId: Optional[str] = Field(alias="client_id", default=None)
1818

1919
# The client secret for the OAuth2 application. This is sensitive information and requires the explicit presence
2020
# of the POWERTOOLS_DEV environment variable.

0 commit comments

Comments
 (0)