fix: Rewrite "No metadata found" error more clearly, adding explanation that perhaps a using codebase is implemented but no flags have been written #1124
Labels
status: done/released
Issue has been completed, no further action is needed.
type: fix
Issues describing a broken feature.
Description
src/validation/ValidationExecutor.ts
conditionally returns the following error:No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.
There are two issues with this error.class-validator
, but the developer has not yet used aclass-validator
flag in their file or codebase. One such case is documented in a type-graphql issue, for example.Proposed Solution
Update the error message with correct grammar and add a sentence explaining that validation flags are expected but not present in the code.
The text was updated successfully, but these errors were encountered: