cbeust/jcommander

Have a default validator

Chuckame opened this issue ยท 1 comments

Hello there, great lib ! ๐Ÿ˜„

So, it can be cool to have a default validation (like a fallback). Is this way, we are able to globalize the validation using javax validation annotations (like @NotBlank on Strings, @Max(10) for a maximum limit for a number, etc...) instead of precising on each param which validator class we want (boring when having many params)
What do you think ? I can help for programming this feature

Interesting point. Could you give me an example? I would like to work on this issue.