Fixed checkSchema() warning that known validators are unknown when its value is false - #1223
v7.0.0
π π First major version in almost 4 years! π π€―
Thanks everybody for having the patience. Hopefully this version brings many improvements to your developer experience!
Deprecated TypeScript types (ValidationParamSchema and ValidationSchema)
isObject() validator now assumes options.strict = true by default
Validation errors changed shape
Field validation errors param property has been renamed to path
oneOf() validation errors no longer have a param: '_error' property
(TypeScript only) The ValidationError type is now a discriminated union, it might be necessary to use switch or if statements to check that you're dealing with the type that you want to debug/format
oneOf() signature changed: from oneOf(chains, message) to oneOf(chains, options: { message, errorType })
oneOf() default error structure now groups errors by their... validation group!, instead of in a flat list
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps express-validator from 6.15.0 to 7.0.1.
Release notes
Sourced from express-validator's releases.
Commits
924cbb6
7.0.1cf7687f
Schema: don't warn when schema entry is falsya7d76ad
docs: add missing list of links at end of Getting Started guidecaf9555
docs: fix broken linksc75d364
7.0.016fb680
docs: cut new versionb873319
fix AlternativeMessageFactory testecb37e4
exists: addvalues
option + missing docsd43834e
Update build badge on readme5d5da09
checkSchema: don't silently fail when using not/withMessageDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)