Add validation for attribute generalization #1619