This method validates the type of the given variable based on the configuration given. If the value isn't of that type then we add an error and return the result.
The attribute name
The value
The attribute configuration
The validation result object
Generated using TypeDoc
Validator class for the primitive types. This is used for the first step before using our custom validators to prevent unecessary computations. We just call the validate method and return the result