[BUG] API docs for Mergin Alerts have required fields not marked as required
Trying to merge an alert via the API without the iocs_import_list and assets_import_list fields results in these python tracebacks: 2025-07-18 12:25:56 :: ERROR :: alerts_routes :: alerts_merge_route :: 'NoneType' object is not iterable Traceback (most recent call last): File "/iriswebapp/app/blueprints/alerts/alerts_routes.py", line 690, in alerts_merge_route merge_alert_in_case(alert, case, File "/iriswebapp/app/datamgmt/alerts/alerts_db.py", line 721, in merge_alert_in_case for ioc_uuid in iocs_list: TypeError: 'NoneType' object is not iterable 2025-07-18 12:28:42 :: ERROR :: alerts_routes :: alerts_merge_route :: 'NoneType' object is not iterable Traceback (most recent call last): File "/iriswebapp/app/blueprints/alerts/alerts_routes.py", line 690, in alerts_merge_route merge_alert_in_case(alert, case, File "/iriswebapp/app/datamgmt/alerts/alerts_db.py", line 730, in merge_alert_in_case for asset_uuid in assets_list: TypeError: 'NoneType' object is not iterable
The fix is to send the fields, even with empty values. The documentation doesn't mark these fields as required.