This function accepts a model, an Obj
or a Widget
, alongside with an attribute name. It evaluates the provided validations for the model and the attribute. The return value is an array of objects containing the validation result messages and the severity levels. If there are no validation results, the array is empty.