Fix target_type validation.

Closes #3217222

Merge request reports

Loading