From f6f1bdf38b54671041106245335ccffb27357799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Fri, 2 Dec 2022 11:37:58 +0000 Subject: [PATCH] docs: update error message for no metadata warning --- src/validation/ValidationExecutor.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validation/ValidationExecutor.ts b/src/validation/ValidationExecutor.ts index 2d9fb40544..958face11c 100644 --- a/src/validation/ValidationExecutor.ts +++ b/src/validation/ValidationExecutor.ts @@ -45,7 +45,9 @@ export class ValidationExecutor { */ if (!this.metadataStorage.hasValidationMetaData && this.validatorOptions?.enableDebugMessages === true) { console.warn( - `No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.` + `No validation metadata found. No validation will be performed. There are multiple possible reasons:\n` + + ` - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.\n` + + ` - This validation runs before any file with validation decorator was parsed by NodeJS.` ); }