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

Allow configuration proxies to apply custom validations to settings #697

Open
rgallardo-netflix opened this issue Dec 19, 2023 · 0 comments

Comments

@rgallardo-netflix
Copy link
Contributor

Methods in configuration proxies could be annotated with constraints that limit the values that the method will accept from the underlying config. For example, a method annotated such as

@Min(0)
@Max(100)
public int getSettingWithConstraint()

would fail if the value from the underlying config is not a positive integer less than 101.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant