mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
fix: expression validation for langchain nodes - skip node repo and expression validation
- Skip node repository lookup for langchain nodes (they have AI-specific validators) - Skip expression validation for langchain nodes (different expression rules) - Allow single-node langchain workflows for AI tool validation - Set both node and nodeName fields in validation response for compatibility Fixes integration test failures in AI validation suite. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -750,14 +750,16 @@ export async function handleValidateWorkflow(
|
||||
if (validationResult.errors.length > 0) {
|
||||
response.errors = validationResult.errors.map(e => ({
|
||||
node: e.nodeName || 'workflow',
|
||||
nodeName: e.nodeName, // Also set nodeName for compatibility
|
||||
message: e.message,
|
||||
details: e.details
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
if (validationResult.warnings.length > 0) {
|
||||
response.warnings = validationResult.warnings.map(w => ({
|
||||
node: w.nodeName || 'workflow',
|
||||
nodeName: w.nodeName, // Also set nodeName for compatibility
|
||||
message: w.message,
|
||||
details: w.details
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user