Generate required attributes for directive parameters.