Enhance validation process in import_llm_questions to handle additionalProperties errors and clean payloads for improved data integrity

This commit is contained in:
Ross
2025-10-20 22:03:36 +01:00
parent 4050193cec
commit 5e84ba3178
2 changed files with 54 additions and 8 deletions
@@ -15,6 +15,11 @@
</ul>
</div>
{% endif %}
{% if item.dropped_fields %}
<div class="alert alert-info" role="alert">
<strong>Note:</strong> The following unsupported fields were dropped: <em>{{ item.dropped_fields|join:", " }}</em>
</div>
{% endif %}
{% if item.payload %}
<p><strong>Title:</strong> {{ item.payload.title|default:'(No title)'|safe }}</p>
<p><strong>Stem:</strong> {{ item.payload.stem|default:''|safe }}</p>