class-validator
class-validator copied to clipboard
feat: display valid enum values for "isEnum" errors
Description
Checklist
- [x] the pull request title describes what this PR does (not a vague title like
Update index.md) - [x] the pull request targets the default branch of the repository (
develop) - [x] the code follows the established code style of the repository
npm run prettier:checkpassesnpm run lint:checkpasses
- [x] tests are added for the changes I made (if any source code was modified)
- [ ] documentation added or updated
- [x] I have run the project locally and verified that there are no errors
Fixes
fixes #17198 (actually "implements" it, since it's a feature request and not a bug report)
Is this ever gonna be merged?
Is this ever going to be merged?
Yes, please merge so we don't have to create custom error messages just to show possible enum values xD
Superset by https://github.com/typestack/class-validator/pull/1826.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.