class-validator icon indicating copy to clipboard operation
class-validator copied to clipboard

feat: display valid enum values for "isEnum" errors

Open hood opened this issue 4 years ago • 3 comments

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:check passes
    • npm run lint:check passes
  • [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)

hood avatar Jan 28 '21 16:01 hood

Is this ever gonna be merged?

hood avatar Aug 09 '21 21:08 hood

Is this ever going to be merged?

hood avatar Apr 14 '22 11:04 hood

Yes, please merge so we don't have to create custom error messages just to show possible enum values xD

ozburo avatar May 06 '22 16:05 ozburo

Superset by https://github.com/typestack/class-validator/pull/1826.

NoNameProvided avatar Dec 03 '22 13:12 NoNameProvided

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.

github-actions[bot] avatar Jan 03 '23 00:01 github-actions[bot]