Simplify the validation of twig tag attributes