[Validator] Register annotations for custom view types.