Maksim Myskov created IGNITE-22016:
--------------------------------------
Summary: Introduce annotation for validating configuration enum
values
Key: IGNITE-22016
URL: https://issues.apache.org/jira/browse/IGNITE-22016
Project: Ignite
Issue Type: Improvement
Reporter: Maksim Myskov
For now, the annotation "OneOf" is used for validating enum values. Example:
{code:java}
@OneOf({"ALL", "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "OFF"})
@Value(hasDefault = true)
public String level = "INFO";
{code}
There are more such examples:
* LogSinkConfigurationSchema.level
* AbstractSslConfigurationSchema.clientAuth
* PersistentPageMemoryDataRegionConfigurationSchema.replacementMode
It would be useful to have an annotation that supports enums:
{code:java}
@Enum(Logger.Level)
@Value(hasDefault = true)
public String level = "INFO";
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)