Files
n8n-mcp/tests/unit/services
czlonkowski dbd1406c43 fix: provide minimal default settings instead of omitting them
Issue: After fixing the description field removal, integration tests
started failing with "must have required property 'settings'" error.

Root cause: n8n API requires the settings property to be present in
workflow updates, but we were deleting it when no settings were
provided or when all settings were filtered out.

Solution: Instead of deleting settings, provide minimal valid default
settings (executionOrder: 'v0') to satisfy n8n API requirements while
avoiding "additional properties" errors.

This fixes both issues:
- Original #431: Empty settings {} causes "additional properties" error
- New issue: Missing settings causes "required property" error

Updated tests to expect minimal default settings instead of no settings.

Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 18:49:36 +01:00
..