Skip to content

Allow configuration proxies to apply custom validations to settings #697

Description

@rgallardo-netflix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions