Skip to content

Commit d25b392

Browse files
authored
fix(validators): allow any values for isIn/notIn (#1124)
1 parent ea006fc commit d25b392

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"prettyjson": "1.2.1",
132132
"reflect-metadata": "0.1.13",
133133
"release-it": "14.11.6",
134-
"sequelize": "6.6.5",
134+
"sequelize": "6.8.0",
135135
"sinon": "11.1.2",
136136
"sinon-chai": "3.7.0",
137137
"source-map-support": "0.5.20",
@@ -144,6 +144,6 @@
144144
"@types/node": "*",
145145
"@types/validator": "*",
146146
"reflect-metadata": "*",
147-
"sequelize": ">=6.6.5"
147+
"sequelize": ">=6.8.0"
148148
}
149149
}

src/validation/is-in.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { addAttributeOptions } from '../model/column/attribute-service';
33
/**
44
* Check the value is one of these
55
*/
6-
export function IsIn(arg: string[][] | { msg: string; args: string[][] }): Function {
6+
export function IsIn(arg: any[][] | { msg: string; args: any[][] }): Function {
77
return (target: any, propertyName: string) =>
88
addAttributeOptions(target, propertyName, {
99
validate: {

src/validation/not-in.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { addAttributeOptions } from '../model/column/attribute-service';
33
/**
44
* Check the value is not one of these
55
*/
6-
export function NotIn(arg: string[][] | { msg: string; args: string[][] }): Function {
6+
export function NotIn(arg: any[][] | { msg: string; args: any[][] }): Function {
77
return (target: any, propertyName: string) =>
88
addAttributeOptions(target, propertyName, {
99
validate: {

0 commit comments

Comments
 (0)