-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: set forbidUnknownValues
to true by default
#1403
fix: set forbidUnknownValues
to true by default
#1403
Conversation
acb7de1
to
c6984bb
Compare
`No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.` | ||
`No metadata found. There is more than one class-validator version installed probably. You need to flatten your dependencies.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems to no belong in this PR, and there is another PR for this already #1127
Is this going to be merged anytime soon? |
forbidUnknownValues
to true by default
This PR contains various unrelated changes, but I think all of this is landed already. The significant change of setting The changed tests seem fine for me on |
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. |
Description
This is an attempted fix for #438
It does so with a breaking change that uses a safe default of
true
forforbidUnknownValues
. Only an explicitfalse
value would preserve the previous default behaviour.Checklist
Update index.md
)develop
)npm run prettier:check
passesnpm run lint:check
passesFixes
fixes #438
Other
35f8d20 Moved
@types/validator
todevDependencies
1b6af93 Fixed a couple of tests that were not returning promises and failing silently