diff --git a/data/nodes.db b/data/nodes.db index dc55889..18a711e 100644 Binary files a/data/nodes.db and b/data/nodes.db differ diff --git a/src/services/expression-validator.ts b/src/services/expression-validator.ts index 974ab48..ceecb89 100644 --- a/src/services/expression-validator.ts +++ b/src/services/expression-validator.ts @@ -141,12 +141,21 @@ export class ExpressionValidator { const jsonPattern = new RegExp(this.VARIABLE_PATTERNS.json.source, this.VARIABLE_PATTERNS.json.flags); while ((match = jsonPattern.exec(expr)) !== null) { result.usedVariables.add('$json'); - + if (!context.hasInputData && !context.isInLoop) { result.warnings.push( 'Using $json but node might not have input data' ); } + + // Check for suspicious property names that might be test/invalid data + const fullMatch = match[0]; + if (fullMatch.includes('.invalid') || fullMatch.includes('.undefined') || + fullMatch.includes('.null') || fullMatch.includes('.test')) { + result.warnings.push( + `Property access '${fullMatch}' looks suspicious - verify this property exists in your data` + ); + } } // Check for $node references