-
Notifications
You must be signed in to change notification settings - Fork 847
Open
Labels
status: needs triageIssues which needs to be reproduced to be verified report.Issues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.Issues describing a broken feature.
Description
Description
When using class-validator it is considered to act in a kind of "singleton" environment, sharing all the metadata once loaded. However e.g. when running integration tests (in my case for nest.js), this leads to memory leaks, as everything is loaded over and over again for each test suite. In #1236 it is declared as by design. However it would be nice to have some kind of cleanup method which resets all the global storages, and cleaning the instance array of the defaultContainer, as well as unsetting the userContainer
FiveOFive
Metadata
Metadata
Assignees
Labels
status: needs triageIssues which needs to be reproduced to be verified report.Issues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.Issues describing a broken feature.