validate
Validates the specified obj based on its annotations.
Supported annotations include Range, NotBlank, Size, Regex, Min, Max, Positive, Negative, NonNegative, NotEmpty, Email, URL, and FileExists. This method also recursively validates nested data classes, lists, and maps.
Parameters
obj
the configuration object to validate
Throws
if any validation rule is violated