Github user revans2 commented on the pull request:
https://github.com/apache/storm/pull/785#issuecomment-146249930
Could we use nested annotations for the complex types?
https://blogs.oracle.com/toddfast/entry/creating_nested_complex_java_annotations
```
@MapType(key=@StringType, value=@NumberType)
public static final ...;
```
instead of
```
@MapOfStringToNumberValidator
```
We might be able to add in an `@Or` annotation so we could get some of the
complex validators to be built up from smaller validators. So we don't need a
once off Validator.
```
@StringOrStringListValidator
```
would become
```
@OR(@StringType, @ListType(@StringType))
```
To me this just gives users better options so they don't have to create
custom validators and annotations whenever a new data structure is needed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---