Add functionality to allow validation on Models linked by $ref keyword