added requiredType with either value 'true' or 'required'