class-validator
class-validator copied to clipboard
fix: overwrite validation decorators from parent class when defined i…
Description
This is an updated rebase of #748 .
Fixes a bug that caused decorated properties which are also decorated in inherited classes, to skip their inherited validation.
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)
- [x] documentation added or updated
- [x] I have run the project locally and verified that there are no errors
Fixes
fixes https://github.com/typestack/class-validator/issues/633 , fixes https://github.com/typestack/class-validator/issues/622