Context Aware configuration with unique or not-null property
Is it possible to specify a CA configuration as required or Not-Null or Unique.
I am exploring for a use-case where I don't want my config collection which has a key-value pair properties to be blank or duplicate. Is there is an OOTB specifier which I have missed?
Sample configs.
I want to avoid cases such as:-
- "Key1": "Val1"
- " ": "Val2"
- "Key1": "Val3"
@Configuration(label = "Sample CA Config", description = "Sample CA config", collection=true)
public @interface SampleConfig {
@Property(order = 1,
label = "Key,
description = "Key Name")
String key();
@Property(order = 2,
label = "Value",
description = "Value property")
String value();
}

