Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Implement OnFailure recover #1146

Open
rochacbruno opened this issue Jul 7, 2024 · 0 comments
Open

[RFC] Implement OnFailure recover #1146

rochacbruno opened this issue Jul 7, 2024 · 0 comments
Labels
Not a Bug Not a Problem, expected behavior RFC typed_dynaconf
Milestone

Comments

@rochacbruno
Copy link
Member

In case a validation error happens, user must want to avoid raising exception but just log and keep program working with defaults.

field: Annotated[str, OnFailure(log=logger,quiet=True, take_default=True)] = "Foo"

In case field is configured as 123 instead of raising validation error, logs the validation error and set the default value instead.

@rochacbruno rochacbruno added Not a Bug Not a Problem, expected behavior RFC typed_dynaconf labels Jul 7, 2024
@rochacbruno rochacbruno added this to the 4.0.0 milestone Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not a Bug Not a Problem, expected behavior RFC typed_dynaconf
Projects
None yet
Development

No branches or pull requests

1 participant