mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-09 06:43:08 +00:00
fix: resolve validation false positives for Google Drive fileFolder resource
- Add normalizeNodeType to enhanced-config-validator to fix node type lookups - Implement getNodePropertyDefaults and getDefaultOperationForResource in repository - Apply default values before checking property visibility - Remove incorrect node type validation forcing n8n-nodes-base prefix - Add comprehensive tests for validation fixes Fixes validation errors for perfectly working workflows like EOitR1NWt2hIcpgd
This commit is contained in:
@@ -364,19 +364,6 @@ export class WorkflowValidator {
|
||||
});
|
||||
}
|
||||
}
|
||||
// FIRST: Check for common invalid patterns before database lookup
|
||||
if (node.type.startsWith('nodes-base.')) {
|
||||
// This is ALWAYS invalid in workflows - must use n8n-nodes-base prefix
|
||||
const correctType = node.type.replace('nodes-base.', 'n8n-nodes-base.');
|
||||
result.errors.push({
|
||||
type: 'error',
|
||||
nodeId: node.id,
|
||||
nodeName: node.name,
|
||||
message: `Invalid node type: "${node.type}". Use "${correctType}" instead. Node types in workflows must use the full package name.`
|
||||
});
|
||||
continue;
|
||||
}
|
||||
|
||||
// Get node definition - try multiple formats
|
||||
let nodeInfo = this.nodeRepository.getNode(node.type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user