File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
aws_lambda_powertools/event_handler/openapi/swagger_ui Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ class Config:
52
52
53
53
@validator ("clientSecret" , always = True )
54
54
def client_secret_only_on_dev (cls , v : Optional [str ]) -> Optional [str ]:
55
- if v and not powertools_dev_is_set ():
55
+ if not v :
56
+ return None
57
+
58
+ if not powertools_dev_is_set ():
56
59
raise ValueError (
57
60
"cannot use client_secret without POWERTOOLS_DEV mode. See "
58
61
"https://docs.powertools.aws.dev/lambda/python/latest/#optimizing-for-non-production-environments" ,
@@ -63,8 +66,7 @@ def client_secret_only_on_dev(cls, v: Optional[str]) -> Optional[str]:
63
66
"DO NOT USE THIS OUTSIDE LOCAL DEVELOPMENT" ,
64
67
stacklevel = 2 ,
65
68
)
66
-
67
- return v
69
+ return v
68
70
69
71
70
72
def generate_oauth2_redirect_html () -> str :
You can’t perform that action at this time.
0 commit comments