Skip to content

Commit b1fdc52

Browse files
committed
Add validation message to avoid obscure changes that the user will not expect
1 parent db1e172 commit b1fdc52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/core/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ class Settings(
187187

188188
@model_validator(mode="after")
189189
def validate_environment_settings(self) -> Self:
190+
"The validation should not modify any of the settings. It should provide"
191+
"feedback to the user if any misconfiguration is detected."
190192
if self.ENVIRONMENT == EnvironmentOption.LOCAL:
191193
pass
192194
elif self.ENVIRONMENT == EnvironmentOption.STAGING:

0 commit comments

Comments
 (0)