{% if schema['items'].type == 'text' and 'choices' in schema['items'] %} {% if data is none %} {% set data = [] %} {% endif %}