{#*******************************************

Generated schema

{{ dump(data) }}

********************************************#}

##########################################################################################################################
#
# This schema is generated.
# Any modification may be erased.
# Use the inherited schema {{ data.label }} to add elements to, or move/inherit elements from, this schema
#
##########################################################################################################################
{% set include_input_text_fields = data.input_text_fields | map((field_label) => "(input #{field_label} || \"\")") | join(' . " " . ') %}
{% set include_input_array_text_fields = "\"\"" %}
{% if data.input_array_text_fields is defined and data.input_array_text_fields %}
    {% set include_input_array_text_fields = data.input_array_text_fields | map((field_label) => "((input #{field_label} | join \" \") || \"\")") | join(' . " " . ') %}
{% endif %}

schema {{ data.label }}_generated {

    {{ include('schema_document_generated.twig', {data: {label: data.label, fields: data.document_fields}}, with_context = true) }}

    {% if data.rank_profiles %}
        {{ include('schema_rank_profiles_generated.twig', {data: data.rank_profiles }, with_context = true) }}
    {% endif %}

    {% if data.input_text_embedding_fields %}
       {{ include('schema_input_text_embedding_fields_generated.twig', {data: {include_input_text_fields: include_input_text_fields, include_input_array_text_fields: include_input_array_text_fields, input_text_embedding_fields: data.input_text_embedding_fields}}, with_context = true) }}
    {% endif %}

   {% if data.input_text_fields %}
       {{ include('schema_input_text_fields_generated.twig', {data: {include_input_text_fields: include_input_text_fields, include_input_array_text_fields: include_input_array_text_fields}}, with_context = true) }}
   {% endif %}

   {% if data.fieldsets %}
       {{ include('schema_fieldsets_generated.twig', {data: data.fieldsets}, with_context = true) }}
   {% endif %}

}
