Skip to content
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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
278 commits
Select commit Hold shift + click to select a range
29abff6
build(deps-dev): bump rollup from 2.45.1 to 2.45.2 (#1021)
dependabot[bot] Apr 13, 2021
4251428
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1020)
dependabot[bot] Apr 13, 2021
7a9248d
build(deps-dev): bump eslint-config-prettier from 8.1.0 to 8.2.0 (#1022)
dependabot[bot] Apr 14, 2021
9e68074
build(deps-dev): bump @types/node from 14.14.37 to 14.14.39 (#1023)
dependabot[bot] Apr 15, 2021
91cd9b5
build(deps-dev): bump @types/node from 14.14.39 to 14.14.41 (#1026)
dependabot[bot] Apr 16, 2021
ab68d25
build(deps-dev): bump ts-jest from 26.5.4 to 26.5.5 (#1027)
dependabot[bot] Apr 16, 2021
c8c077b
build(deps): bump validator from 13.5.2 to 13.6.0 (#1030)
dependabot[bot] Apr 21, 2021
5a71a97
build(deps-dev): bump eslint-config-prettier from 8.2.0 to 8.3.0 (#1034)
dependabot[bot] Apr 26, 2021
1f88415
build(deps-dev): bump eslint from 7.24.0 to 7.25.0 (#1035)
dependabot[bot] Apr 26, 2021
78016a7
build(deps-dev): bump eslint-plugin-jest from 24.3.5 to 24.3.6 (#1036)
dependabot[bot] Apr 26, 2021
a3a4ee3
build(deps-dev): bump @types/jest from 26.0.22 to 26.0.23 (#1038)
dependabot[bot] Apr 27, 2021
03d1a39
build(deps-dev): bump @types/node from 14.14.41 to 15.0.0 (#1039)
dependabot[bot] Apr 27, 2021
7fcc8a8
build(deps-dev): bump @types/node from 15.0.0 to 15.0.1 (#1040)
dependabot[bot] Apr 28, 2021
b613a90
build(deps-dev): bump rollup from 2.45.2 to 2.46.0 (#1042)
dependabot[bot] Apr 29, 2021
1f89dfd
build(deps): bump libphonenumber-js from 1.9.16 to 1.9.17 (#1052)
dependabot[bot] May 4, 2021
65494d8
build(deps-dev): bump rollup from 2.46.0 to 2.47.0 (#1053)
dependabot[bot] May 4, 2021
a0aec07
build(deps-dev): bump @types/node from 15.0.1 to 15.0.2 (#1055)
dependabot[bot] May 5, 2021
1196bb3
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1058)
dependabot[bot] May 5, 2021
c66324e
build(deps-dev): bump @rollup/plugin-commonjs from 18.0.0 to 18.1.0 (…
dependabot[bot] May 5, 2021
52b7403
build(deps-dev): bump @typescript-eslint/parser from 4.22.0 to 4.22.1…
dependabot[bot] May 5, 2021
6d7875d
build(deps-dev): bump @rollup/plugin-node-resolve from 11.2.1 to 13.0…
dependabot[bot] May 5, 2021
98d3b39
build(deps-dev): bump ts-jest from 26.5.5 to 26.5.6 (#1063)
dependabot[bot] May 6, 2021
cde84b6
build(deps): bump lodash from 4.17.19 to 4.17.21 (#1065)
dependabot[bot] May 6, 2021
051662a
build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1067)
dependabot[bot] May 9, 2021
0a0d39c
build(deps-dev): bump lint-staged from 10.5.4 to 11.0.0 (#1069)
dependabot[bot] May 10, 2021
322bb8a
build(deps-dev): bump eslint from 7.25.0 to 7.26.0 (#1070)
dependabot[bot] May 10, 2021
23cefc2
build(deps-dev): bump @rollup/plugin-commonjs from 18.1.0 to 19.0.0 (…
dependabot[bot] May 10, 2021
3ba8007
build(deps-dev): bump @typescript-eslint/parser from 4.22.1 to 4.23.0…
dependabot[bot] May 11, 2021
f8db01e
build(deps-dev): bump @types/node from 15.0.2 to 15.0.3 (#1076)
dependabot[bot] May 13, 2021
0384bd6
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1075)
dependabot[bot] May 13, 2021
fe6edeb
build(deps-dev): bump @types/node from 15.0.3 to 15.3.0 (#1078)
dependabot[bot] May 17, 2021
e04b02c
build(deps-dev): bump rollup from 2.47.0 to 2.48.0 (#1079)
dependabot[bot] May 17, 2021
880c19f
build(deps-dev): bump @typescript-eslint/parser from 4.23.0 to 4.24.0…
dependabot[bot] May 18, 2021
92b2661
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1081)
dependabot[bot] May 18, 2021
ae4a842
build(deps-dev): bump @types/node from 15.3.0 to 15.3.1 (#1083)
dependabot[bot] May 20, 2021
e1d0334
build(deps): bump libphonenumber-js from 1.9.17 to 1.9.18 (#1084)
dependabot[bot] May 21, 2021
a3de3df
build(deps-dev): bump eslint from 7.26.0 to 7.27.0 (#1086)
dependabot[bot] May 24, 2021
790ca2f
build(deps-dev): bump rollup from 2.48.0 to 2.49.0 (#1088)
dependabot[bot] May 24, 2021
c703170
build(deps-dev): bump @types/node from 15.3.1 to 15.6.0 (#1089)
dependabot[bot] May 24, 2021
5e29972
build(deps-dev): bump ts-node from 9.1.1 to 10.0.0 (#1087)
dependabot[bot] May 24, 2021
0bd94fa
build(deps-dev): bump @types/node from 15.6.0 to 15.6.1 (#1092)
dependabot[bot] May 25, 2021
5c47635
build(deps-dev): bump @typescript-eslint/parser from 4.24.0 to 4.25.0…
dependabot[bot] May 25, 2021
9a1306e
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1093)
dependabot[bot] May 25, 2021
6ebcca6
build(deps-dev): bump rollup from 2.49.0 to 2.50.1 (#1096)
dependabot[bot] May 26, 2021
56590a8
build(deps): bump libphonenumber-js from 1.9.18 to 1.9.19 (#1098)
dependabot[bot] May 27, 2021
55e314f
build(deps-dev): bump rollup from 2.50.1 to 2.50.2 (#1100)
dependabot[bot] May 28, 2021
aceece1
build(deps-dev): bump rollup from 2.50.2 to 2.50.5 (#1102)
dependabot[bot] May 31, 2021
f36bbd0
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1103)
dependabot[bot] Jun 1, 2021
b7decb3
build(deps): bump ws from 7.4.2 to 7.4.6 (#1101)
dependabot[bot] Jun 1, 2021
111776c
build(deps-dev): bump @typescript-eslint/parser from 4.25.0 to 4.26.0…
dependabot[bot] Jun 1, 2021
c25a57c
build(deps-dev): bump @types/node from 15.6.1 to 15.6.2 (#1107)
dependabot[bot] Jun 2, 2021
c3147d5
build(deps-dev): bump @types/node from 15.6.2 to 15.9.0 (#1108)
dependabot[bot] Jun 3, 2021
5c2ca7f
build(deps-dev): bump rollup from 2.50.5 to 2.50.6 (#1109)
dependabot[bot] Jun 3, 2021
963b165
build(deps-dev): bump @types/node from 15.9.0 to 15.12.0 (#1110)
dependabot[bot] Jun 4, 2021
2c76a81
build(deps-dev): bump eslint from 7.27.0 to 7.28.0 (#1112)
dependabot[bot] Jun 7, 2021
a979c89
build(deps-dev): bump rollup from 2.50.6 to 2.51.0 (#1113)
dependabot[bot] Jun 7, 2021
cd7faa5
build(deps-dev): bump @types/node from 15.12.0 to 15.12.1 (#1114)
dependabot[bot] Jun 7, 2021
215479e
build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#1116)
dependabot[bot] Jun 8, 2021
f8faf22
build(deps-dev): bump rollup from 2.51.0 to 2.51.1 (#1117)
dependabot[bot] Jun 8, 2021
f287c69
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1118)
dependabot[bot] Jun 8, 2021
b0375c7
build(deps-dev): bump @typescript-eslint/parser from 4.26.0 to 4.26.1…
dependabot[bot] Jun 8, 2021
18ebb7a
build(deps): bump @types/validator from 13.1.3 to 13.1.4 (#1121)
dependabot[bot] Jun 9, 2021
a624b1a
build(deps-dev): bump rollup from 2.51.1 to 2.51.2 (#1126)
dependabot[bot] Jun 11, 2021
add85d6
build(deps-dev): bump @types/node from 15.12.1 to 15.12.2 (#1122)
dependabot[bot] Jun 11, 2021
9a8016f
build(deps-dev): bump @typescript-eslint/parser from 4.26.1 to 4.27.0…
dependabot[bot] Jun 15, 2021
47b9ee9
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1131)
dependabot[bot] Jun 15, 2021
9c363b6
build(deps-dev): bump rollup from 2.51.2 to 2.52.0 (#1132)
dependabot[bot] Jun 16, 2021
747a8f0
build(deps-dev): bump rollup from 2.52.0 to 2.52.1 (#1134)
dependabot[bot] Jun 17, 2021
0df1d8b
build(deps-dev): bump @types/node from 15.12.2 to 15.12.4 (#1138)
dependabot[bot] Jun 21, 2021
aca31bc
build(deps): bump libphonenumber-js from 1.9.19 to 1.9.20 (#1139)
dependabot[bot] Jun 21, 2021
ae28a66
build(deps-dev): bump eslint from 7.28.0 to 7.29.0 (#1140)
dependabot[bot] Jun 21, 2021
1d8924a
build(deps-dev): bump rollup from 2.52.1 to 2.52.2 (#1141)
dependabot[bot] Jun 21, 2021
40a87b7
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1142)
dependabot[bot] Jun 22, 2021
ea32140
build(deps-dev): bump @types/node from 15.12.4 to 15.12.5 (#1147)
dependabot[bot] Jun 28, 2021
2c55e57
build(deps-dev): bump rollup from 2.52.2 to 2.52.3 (#1148)
dependabot[bot] Jun 28, 2021
e8cff43
build(deps-dev): bump @typescript-eslint/parser from 4.27.0 to 4.28.0…
dependabot[bot] Jun 28, 2021
4c60b29
build(deps-dev): bump @typescript-eslint/parser from 4.28.0 to 4.28.1…
dependabot[bot] Jun 29, 2021
892dcfb
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1152)
dependabot[bot] Jun 29, 2021
ff27647
build(deps-dev): bump rollup from 2.52.3 to 2.52.4 (#1153)
dependabot[bot] Jun 30, 2021
ff79d7d
build(deps-dev): bump rollup from 2.52.4 to 2.52.6 (#1156)
dependabot[bot] Jul 1, 2021
a86567e
build(deps): bump @types/validator from 13.1.4 to 13.6.0 (#1158)
dependabot[bot] Jul 2, 2021
ab36eba
build(deps-dev): bump rollup from 2.52.6 to 2.52.7 (#1159)
dependabot[bot] Jul 2, 2021
c2f999f
build(deps-dev): bump @types/node from 15.12.5 to 15.14.0 (#1160)
dependabot[bot] Jul 2, 2021
219da27
build(deps): bump libphonenumber-js from 1.9.20 to 1.9.21 (#1164)
dependabot[bot] Jul 5, 2021
0f7500c
build(deps-dev): bump eslint from 7.29.0 to 7.30.0 (#1165)
dependabot[bot] Jul 5, 2021
31a0a31
build(deps-dev): bump @types/node from 15.14.0 to 16.0.0 (#1166)
dependabot[bot] Jul 5, 2021
e85dc83
build(deps): bump @types/validator from 13.6.0 to 13.6.2 (#1167)
dependabot[bot] Jul 5, 2021
afd61b0
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1169)
dependabot[bot] Jul 6, 2021
9b4530f
build(deps-dev): bump @typescript-eslint/parser from 4.28.1 to 4.28.2…
dependabot[bot] Jul 6, 2021
e55054c
build(deps-dev): bump @types/jest from 26.0.23 to 26.0.24 (#1172)
dependabot[bot] Jul 7, 2021
afe8315
build(deps): bump @types/validator from 13.6.2 to 13.6.3 (#1174)
dependabot[bot] Jul 7, 2021
f73b771
build(deps-dev): bump rollup from 2.52.7 to 2.52.8 (#1173)
dependabot[bot] Jul 7, 2021
16151c9
build(deps-dev): bump @types/node from 16.0.0 to 16.0.1 (#1175)
dependabot[bot] Jul 8, 2021
4fed461
build(deps-dev): bump @types/node from 16.0.1 to 16.3.0 (#1176)
dependabot[bot] Jul 9, 2021
2ca514d
build(deps-dev): bump rollup from 2.52.8 to 2.53.0 (#1177)
dependabot[bot] Jul 9, 2021
1ca545a
build(deps-dev): bump @types/node from 16.3.0 to 16.3.1 (#1178)
dependabot[bot] Jul 12, 2021
1e5ad4d
build(deps): bump libphonenumber-js from 1.9.21 to 1.9.22 (#1180)
dependabot[bot] Jul 12, 2021
38a5c20
build(deps-dev): bump rollup from 2.53.0 to 2.53.1 (#1181)
dependabot[bot] Jul 12, 2021
b3016d3
build(deps-dev): bump ts-node from 10.0.0 to 10.1.0 (#1179)
dependabot[bot] Jul 12, 2021
ac1f80a
build(deps-dev): bump @typescript-eslint/parser from 4.28.2 to 4.28.3…
dependabot[bot] Jul 13, 2021
932e05b
build(deps-dev): bump lint-staged from 11.0.0 to 11.0.1 (#1184)
dependabot[bot] Jul 14, 2021
0615efc
build(deps-dev): bump @types/node from 16.3.1 to 16.3.2 (#1185)
dependabot[bot] Jul 14, 2021
63a4011
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1183)
dependabot[bot] Jul 14, 2021
51e3a14
build(deps-dev): bump rollup from 2.53.1 to 2.53.2 (#1186)
dependabot[bot] Jul 15, 2021
f9063e9
build(deps-dev): bump @rollup/plugin-node-resolve from 13.0.0 to 13.0…
dependabot[bot] Jul 16, 2021
0157ee0
build(deps-dev): bump @rollup/plugin-commonjs from 19.0.0 to 19.0.1 (…
dependabot[bot] Jul 16, 2021
350ff38
build(deps-dev): bump eslint from 7.30.0 to 7.31.0 (#1190)
dependabot[bot] Jul 19, 2021
c47b657
build(deps-dev): bump @types/node from 16.3.2 to 16.3.3 (#1191)
dependabot[bot] Jul 19, 2021
991f6e3
build(deps-dev): bump @typescript-eslint/parser from 4.28.3 to 4.28.4…
dependabot[bot] Jul 20, 2021
f74bbbd
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1192)
dependabot[bot] Jul 20, 2021
c834264
build(deps-dev): bump eslint-plugin-jest from 24.3.6 to 24.3.7 (#1194)
dependabot[bot] Jul 21, 2021
ca2ece2
build(deps-dev): bump rollup from 2.53.2 to 2.53.3 (#1195)
dependabot[bot] Jul 21, 2021
53d7118
build(deps-dev): bump @types/node from 16.3.3 to 16.4.0 (#1196)
dependabot[bot] Jul 21, 2021
3e61d5c
build(deps-dev): bump eslint-plugin-jest from 24.3.7 to 24.4.0 (#1197)
dependabot[bot] Jul 22, 2021
2a814c8
build(deps-dev): bump lint-staged from 11.0.1 to 11.1.0 (#1198)
dependabot[bot] Jul 23, 2021
bc5034b
build(deps-dev): bump @types/node from 16.4.0 to 16.4.1 (#1199)
dependabot[bot] Jul 23, 2021
9569b94
build(deps-dev): bump lint-staged from 11.1.0 to 11.1.1 (#1202)
dependabot[bot] Jul 26, 2021
5988a6e
build(deps-dev): bump rollup from 2.53.3 to 2.54.0 (#1203)
dependabot[bot] Jul 26, 2021
f4259f2
build(deps-dev): bump @types/node from 16.4.1 to 16.4.3 (#1205)
dependabot[bot] Jul 26, 2021
42b24c3
build(deps-dev): bump @rollup/plugin-node-resolve from 13.0.2 to 13.0…
dependabot[bot] Jul 26, 2021
5fb2e8e
build(deps-dev): bump @rollup/plugin-commonjs from 19.0.1 to 19.0.2 (…
dependabot[bot] Jul 27, 2021
eb62f47
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1210)
dependabot[bot] Jul 27, 2021
ac4eb69
build(deps-dev): bump @typescript-eslint/parser from 4.28.4 to 4.28.5…
dependabot[bot] Jul 27, 2021
0391ff8
build(deps-dev): bump rollup from 2.54.0 to 2.55.0 (#1213)
dependabot[bot] Jul 28, 2021
58b907a
build(deps-dev): bump @types/node from 16.4.3 to 16.4.5 (#1214)
dependabot[bot] Jul 28, 2021
8575cfd
build(deps-dev): bump @types/node from 16.4.5 to 16.4.6 (#1216)
dependabot[bot] Jul 29, 2021
df83420
build(deps-dev): bump rollup from 2.55.0 to 2.55.1 (#1217)
dependabot[bot] Jul 30, 2021
b1c0407
build(deps-dev): bump @types/node from 16.4.6 to 16.4.7 (#1218)
dependabot[bot] Jul 30, 2021
6993934
build(deps-dev): bump @rollup/plugin-commonjs from 19.0.2 to 20.0.0 (…
dependabot[bot] Aug 2, 2021
1fda7fc
build(deps-dev): bump eslint from 7.31.0 to 7.32.0 (#1219)
dependabot[bot] Aug 2, 2021
3551f18
build(deps-dev): bump @types/node from 16.4.7 to 16.4.10 (#1221)
dependabot[bot] Aug 2, 2021
9b42898
build(deps): bump libphonenumber-js from 1.9.22 to 1.9.23 (#1222)
dependabot[bot] Aug 2, 2021
40faad1
build(deps-dev): bump @typescript-eslint/parser from 4.28.5 to 4.29.0…
dependabot[bot] Aug 3, 2021
4257806
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1225)
dependabot[bot] Aug 3, 2021
12d65e6
build(deps-dev): bump @types/node from 16.4.10 to 16.4.12 (#1227)
dependabot[bot] Aug 5, 2021
a4c7e68
build(deps-dev): bump rollup from 2.55.1 to 2.56.0 (#1228)
dependabot[bot] Aug 5, 2021
25d302d
build(deps-dev): bump @types/node from 16.4.12 to 16.4.13 (#1229)
dependabot[bot] Aug 6, 2021
7b25bcb
build(deps-dev): bump lint-staged from 11.1.1 to 11.1.2 (#1230)
dependabot[bot] Aug 6, 2021
b5722a5
build(deps-dev): bump rollup from 2.56.0 to 2.56.1 (#1234)
dependabot[bot] Aug 9, 2021
91e4ae3
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1238)
dependabot[bot] Aug 10, 2021
2e5f282
build(deps-dev): bump ts-node from 10.1.0 to 10.2.0 (#1235)
dependabot[bot] Aug 10, 2021
3ad80b8
build(deps-dev): bump @typescript-eslint/parser from 4.29.0 to 4.29.1…
dependabot[bot] Aug 10, 2021
7babd4e
build(deps-dev): bump rollup from 2.56.1 to 2.56.2 (#1237)
dependabot[bot] Aug 10, 2021
6e4acf1
build(deps): bump path-parse from 1.0.6 to 1.0.7 (#1240)
dependabot[bot] Aug 10, 2021
f4ec310
build(deps-dev): bump @types/jest from 26.0.24 to 27.0.0 (#1241)
dependabot[bot] Aug 11, 2021
59e01e2
build(deps-dev): bump @types/node from 16.4.13 to 16.6.0 (#1244)
dependabot[bot] Aug 12, 2021
d97b1f7
build(deps-dev): bump @types/jest from 27.0.0 to 27.0.1 (#1245)
dependabot[bot] Aug 13, 2021
a3c0c1f
build(deps-dev): bump @types/node from 16.6.0 to 16.6.1 (#1246)
dependabot[bot] Aug 13, 2021
8454c66
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1248)
dependabot[bot] Aug 17, 2021
b017914
build(deps-dev): bump @typescript-eslint/parser from 4.29.1 to 4.29.2…
dependabot[bot] Aug 17, 2021
41fc291
build(deps-dev): bump @types/node from 16.6.1 to 16.6.2 (#1250)
dependabot[bot] Aug 19, 2021
7cc9a44
build(deps-dev): bump ts-node from 10.2.0 to 10.2.1 (#1251)
dependabot[bot] Aug 19, 2021
71444a3
build(deps-dev): bump @types/node from 16.6.2 to 16.7.1 (#1256)
dependabot[bot] Aug 23, 2021
af9f1d2
build(deps): bump libphonenumber-js from 1.9.23 to 1.9.24 (#1257)
dependabot[bot] Aug 23, 2021
bf77809
build(deps-dev): bump rollup from 2.56.2 to 2.56.3 (#1258)
dependabot[bot] Aug 23, 2021
e550008
build(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.29.3…
dependabot[bot] Aug 24, 2021
56bf955
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1260)
dependabot[bot] Aug 24, 2021
a8a8fa0
build(deps-dev): bump @types/node from 16.7.1 to 16.7.2 (#1263)
dependabot[bot] Aug 26, 2021
b1c7022
build(deps): bump libphonenumber-js from 1.9.24 to 1.9.25 (#1264)
dependabot[bot] Aug 26, 2021
8d4a632
build(deps-dev): bump @types/node from 16.7.2 to 16.7.6 (#1266)
dependabot[bot] Aug 30, 2021
020fc86
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1268)
dependabot[bot] Aug 31, 2021
2f4d53b
build(deps-dev): bump @types/node from 16.7.6 to 16.7.8 (#1270)
dependabot[bot] Aug 31, 2021
9b5d235
build(deps-dev): bump @typescript-eslint/parser from 4.29.3 to 4.30.0…
dependabot[bot] Aug 31, 2021
6cfa7f6
build(deps-dev): bump @types/node from 16.7.8 to 16.7.10 (#1272)
dependabot[bot] Sep 1, 2021
3f1dbdc
build(deps): bump libphonenumber-js from 1.9.25 to 1.9.26 (#1275)
dependabot[bot] Sep 6, 2021
d5a388c
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1280)
dependabot[bot] Sep 7, 2021
11e0ab8
build(deps-dev): bump @types/node from 16.7.10 to 16.7.13 (#1281)
dependabot[bot] Sep 7, 2021
c629a9a
build(deps-dev): bump @typescript-eslint/parser from 4.30.0 to 4.31.0…
dependabot[bot] Sep 7, 2021
989abaa
build(deps): bump libphonenumber-js from 1.9.26 to 1.9.27 (#1283)
dependabot[bot] Sep 9, 2021
8d96ae0
build(deps-dev): bump @types/node from 16.7.13 to 16.9.0 (#1284)
dependabot[bot] Sep 9, 2021
71bee82
build(deps-dev): bump @types/node from 16.9.0 to 16.9.1 (#1285)
dependabot[bot] Sep 10, 2021
61ee875
build(deps): bump libphonenumber-js from 1.9.27 to 1.9.28 (#1287)
dependabot[bot] Sep 10, 2021
4743bf5
build(deps): bump libphonenumber-js from 1.9.28 to 1.9.32 (#1289)
dependabot[bot] Sep 13, 2021
ff75343
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1294)
dependabot[bot] Sep 14, 2021
3282610
build(deps-dev): bump @typescript-eslint/parser from 4.31.0 to 4.31.1…
dependabot[bot] Sep 14, 2021
a71250b
build(deps): bump libphonenumber-js from 1.9.32 to 1.9.34 (#1296)
dependabot[bot] Sep 15, 2021
aa386d9
build(deps-dev): bump eslint-plugin-jest from 24.4.0 to 24.4.2 (#1298)
dependabot[bot] Sep 17, 2021
21f8fe6
build(deps-dev): bump @types/node from 16.9.1 to 16.9.2 (#1299)
dependabot[bot] Sep 17, 2021
a49cb5b
build(deps-dev): bump @types/node from 16.9.2 to 16.9.4 (#1302)
dependabot[bot] Sep 20, 2021
7b80fd1
build(deps): bump semver-regex from 3.1.2 to 3.1.3 (#1304)
dependabot[bot] Sep 21, 2021
90678b1
build(deps): bump tmpl from 1.0.4 to 1.0.5 (#1305)
dependabot[bot] Sep 21, 2021
361c9f4
build(deps-dev): bump @typescript-eslint/parser from 4.31.1 to 4.31.2…
dependabot[bot] Sep 21, 2021
085b456
build(deps-dev): bump @types/jest from 27.0.1 to 27.0.2 (#1307)
dependabot[bot] Sep 21, 2021
9b7278c
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1308)
dependabot[bot] Sep 21, 2021
f5ae49d
build(deps-dev): bump rollup from 2.56.3 to 2.57.0 (#1309)
dependabot[bot] Sep 22, 2021
b2e6dd9
build(deps-dev): bump @rollup/plugin-node-resolve from 13.0.4 to 13.0…
dependabot[bot] Sep 22, 2021
6e9af16
build(deps-dev): bump @types/node from 16.9.4 to 16.9.6 (#1311)
dependabot[bot] Sep 22, 2021
0e065a2
build(deps-dev): bump @types/node from 16.9.6 to 16.10.1 (#1314)
dependabot[bot] Sep 27, 2021
99b26a2
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 (#1315)
dependabot[bot] Sep 27, 2021
b1e1d83
build(deps-dev): bump @typescript-eslint/parser from 4.31.2 to 4.32.0…
dependabot[bot] Sep 28, 2021
67879a2
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1317)
dependabot[bot] Sep 28, 2021
79fdef4
build(deps-dev): bump eslint-plugin-jest from 24.4.2 to 24.5.0 (#1318)
dependabot[bot] Sep 29, 2021
146d016
build(deps-dev): bump @types/node from 16.10.1 to 16.10.2 (#1320)
dependabot[bot] Sep 30, 2021
d598def
build(deps-dev): bump rollup from 2.57.0 to 2.58.0 (#1322)
dependabot[bot] Oct 1, 2021
d1f45bf
build(deps-dev): bump eslint-plugin-jest from 24.5.0 to 24.5.2 (#1326)
dependabot[bot] Oct 4, 2021
5a328a3
build(deps): bump libphonenumber-js from 1.9.34 to 1.9.35 (#1327)
dependabot[bot] Oct 4, 2021
c9fec56
build(deps-dev): bump @rollup/plugin-commonjs from 20.0.0 to 21.0.0 (…
dependabot[bot] Oct 4, 2021
130d041
build(deps-dev): bump lint-staged from 11.1.2 to 11.2.0 (#1329)
dependabot[bot] Oct 5, 2021
46654b4
build(deps-dev): bump @typescript-eslint/parser from 4.32.0 to 4.33.0…
dependabot[bot] Oct 5, 2021
2e9a2d8
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1330)
dependabot[bot] Oct 5, 2021
8635d99
build(deps): bump libphonenumber-js from 1.9.35 to 1.9.36 (#1332)
dependabot[bot] Oct 6, 2021
04e810d
build(deps-dev): bump @types/node from 16.10.2 to 16.10.3 (#1333)
dependabot[bot] Oct 6, 2021
bf22fcc
build(deps): bump libphonenumber-js from 1.9.36 to 1.9.37 (#1334)
dependabot[bot] Oct 7, 2021
2f58840
build(deps-dev): bump eslint-plugin-jest from 24.5.2 to 25.0.1 (#1335)
dependabot[bot] Oct 11, 2021
31a6e25
build(deps-dev): bump lint-staged from 11.2.0 to 11.2.3 (#1336)
dependabot[bot] Oct 11, 2021
02da2b4
build(deps-dev): bump @types/node from 16.10.3 to 16.10.5 (#1343)
dependabot[bot] Oct 13, 2021
7ca6054
build(deps-dev): bump ts-node from 10.2.1 to 10.3.0 (#1337)
dependabot[bot] Oct 13, 2021
c512d19
build(deps-dev): bump eslint-plugin-jest from 25.0.1 to 25.0.5 (#1338)
dependabot[bot] Oct 13, 2021
852e6a5
build(deps-dev): bump @types/node from 16.10.5 to 16.10.9 (#1345)
dependabot[bot] Oct 14, 2021
ab6767f
build(deps-dev): bump eslint-plugin-jest from 25.0.5 to 25.0.6 (#1346)
dependabot[bot] Oct 14, 2021
7a21f6d
build(deps-dev): bump @types/node from 16.10.9 to 16.11.0 (#1348)
dependabot[bot] Oct 15, 2021
3b76149
build(deps-dev): bump eslint-plugin-jest from 25.0.6 to 25.2.2 (#1351)
dependabot[bot] Oct 18, 2021
d031378
build(deps): bump libphonenumber-js from 1.9.37 to 1.9.38 (#1352)
dependabot[bot] Oct 18, 2021
86901ab
build(deps-dev): bump @types/node from 16.11.0 to 16.11.1 (#1353)
dependabot[bot] Oct 18, 2021
ed4da4e
build(deps-dev): bump @rollup/plugin-commonjs from 21.0.0 to 21.0.1 (…
dependabot[bot] Oct 20, 2021
e0d8b03
build(deps): bump @types/validator from 13.6.3 to 13.6.4 (#1357)
dependabot[bot] Oct 20, 2021
8c77c5f
build(deps-dev): bump @rollup/plugin-node-resolve from 13.0.5 to 13.0…
dependabot[bot] Oct 20, 2021
f8a9cea
build(deps-dev): bump @types/node from 16.11.1 to 16.11.3 (#1360)
dependabot[bot] Oct 22, 2021
222c89b
build(deps-dev): bump ts-node from 10.3.0 to 10.3.1 (#1361)
dependabot[bot] Oct 22, 2021
2dbd62e
build(deps): bump @types/validator from 13.6.4 to 13.6.5 (#1363)
dependabot[bot] Oct 25, 2021
4745ec1
build(deps-dev): bump rollup from 2.58.0 to 2.58.1 (#1364)
dependabot[bot] Oct 25, 2021
b63f2a3
build(deps-dev): bump lint-staged from 11.2.3 to 11.2.4 (#1367)
dependabot[bot] Oct 25, 2021
787448b
build(deps-dev): bump ts-node from 10.3.1 to 10.4.0 (#1365)
dependabot[bot] Oct 25, 2021
2576586
build(deps-dev): bump @types/node from 16.11.3 to 16.11.4 (#1366)
dependabot[bot] Oct 25, 2021
ec71027
build(deps-dev): bump @types/node from 16.11.4 to 16.11.6 (#1368)
dependabot[bot] Oct 26, 2021
5a2281d
build(deps-dev): bump rollup from 2.58.1 to 2.58.3 (#1369)
dependabot[bot] Oct 26, 2021
3f2b216
build(deps-dev): bump lint-staged from 11.2.4 to 11.2.6 (#1370)
dependabot[bot] Oct 27, 2021
2b5cbc0
build(deps): bump libphonenumber-js from 1.9.38 to 1.9.39 (#1371)
dependabot[bot] Oct 27, 2021
dd9792f
build(deps-dev): bump rollup from 2.58.3 to 2.59.0 (#1376)
dependabot[bot] Nov 1, 2021
f409072
build(deps): bump @types/validator from 13.6.5 to 13.6.6 (#1377)
dependabot[bot] Nov 1, 2021
cc17804
build(deps): bump validator from 13.6.0 to 13.7.0 (#1379)
dependabot[bot] Nov 2, 2021
60be183
build(deps): bump libphonenumber-js from 1.9.39 to 1.9.41 (#1380)
dependabot[bot] Nov 3, 2021
dca5a15
build(deps-dev): bump eslint-plugin-jest from 25.2.2 to 25.2.3 (#1383)
dependabot[bot] Nov 5, 2021
d70a3c7
build(deps): bump libphonenumber-js from 1.9.41 to 1.9.42 (#1386)
dependabot[bot] Nov 8, 2021
b450237
build(deps-dev): bump @types/node from 16.11.6 to 16.11.7 (#1387)
dependabot[bot] Nov 9, 2021
8b02685
build(deps-dev): bump rollup from 2.59.0 to 2.60.0 (#1391)
dependabot[bot] Nov 12, 2021
04d6db8
build(deps-dev): bump eslint-plugin-jest from 25.2.3 to 25.2.4 (#1388)
dependabot[bot] Nov 12, 2021
3e83b6d
build(deps-dev): bump lint-staged from 11.2.6 to 12.0.2 (#1395)
dependabot[bot] Nov 15, 2021
e11290f
build(deps): bump @types/validator from 13.6.6 to 13.7.0 (#1396)
dependabot[bot] Nov 16, 2021
2c2205f
fix: spelling
mikeguta Nov 16, 2021
35f8d20
fix: make @types/validator a devDependency
mikeguta Nov 16, 2021
1b6af93
test: unresolved promises hiding test failures
mikeguta Nov 16, 2021
30b2579
fix: #438 default forbidUnknownValues to true
mikeguta Nov 16, 2021
ae22f4c
docs: use examples from roim:patch-1
mikeguta Nov 16, 2021
16fc83a
docs: forbidUnknownValues in README
mikeguta Nov 16, 2021
5ff4071
fix: erroneous package-lock.json
mikeguta Nov 17, 2021
938fcc4
style: prettier fix
mikeguta Nov 17, 2021
f8c004c
fix: merge from upstream
mikeguta Nov 17, 2021
b9d175d
build(deps): bump libphonenumber-js from 1.9.42 to 1.9.43 (#1404)
dependabot[bot] Nov 18, 2021
1337695
fix: Merge branch 'develop' of https://github.com/typestack/class-val…
mikeguta Nov 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -139,7 +139,7 @@ export interface ValidatorOptions {
}
```

> It's highly advised to set `forbidUnknownValues: true` as it will prevent unknown objects from passing validation.
> It's highly advised to not set `forbidUnknownValues: false` as it will allow unknown objects to bypass validation. The default is a safe value of `true`.

## Validation errors

Expand Down
1,176 changes: 752 additions & 424 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Expand Up @@ -36,30 +36,30 @@
"test:ci": "jest --runInBand --no-cache --coverage --verbose"
},
"dependencies": {
"@types/validator": "^13.1.3",
"libphonenumber-js": "^1.9.12",
"validator": "^13.5.2"
"libphonenumber-js": "^1.9.43",
"validator": "^13.7.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.35",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jest": "^24.3.2",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@types/jest": "^27.0.2",
"@types/node": "^16.11.7",
"@types/validator": "^13.7.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^25.2.4",
"husky": "^4.3.8",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"lint-staged": "^12.0.2",
"prettier": "^2.2.1",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.2",
"rollup": "^2.42.3",
"rollup": "^2.60.0",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^26.5.3",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
"ts-jest": "^26.5.6",
"ts-node": "^10.4.0",
"typescript": "^4.2.4"
}
}
5 changes: 3 additions & 2 deletions src/validation/ValidationExecutor.ts
Expand Up @@ -45,13 +45,14 @@ export class ValidationExecutor {
*/
if (!this.metadataStorage.hasValidationMetaData && this.validatorOptions?.enableDebugMessages === true) {
console.warn(
`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.`
Copy link
Member

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

);
}

const groups = this.validatorOptions ? this.validatorOptions.groups : undefined;
const strictGroups = (this.validatorOptions && this.validatorOptions.strictGroups) || false;
const always = (this.validatorOptions && this.validatorOptions.always) || false;
const forbidUnknownValues = this.validatorOptions?.forbidUnknownValues ?? true;

const targetMetadatas = this.metadataStorage.getTargetValidationMetadatas(
object.constructor,
Expand All @@ -62,7 +63,7 @@ export class ValidationExecutor {
);
const groupedMetadatas = this.metadataStorage.groupByPropertyName(targetMetadatas);

if (this.validatorOptions && this.validatorOptions.forbidUnknownValues && !targetMetadatas.length) {
if (forbidUnknownValues && !targetMetadatas.length) {
const validationError = new ValidationError();

if (
Expand Down
10 changes: 9 additions & 1 deletion src/validation/ValidatorOptions.ts
Expand Up @@ -72,7 +72,15 @@ export interface ValidatorOptions {
};

/**
* Settings true will cause fail validation of unknown objects.
* Setting this to false will allow unknown objects (i.e. objects whose prototype classes have no validation metadata) to pass validation.
* If you do not specify a value or you use null or undefined, a safe value of true will be used to prevent accidental validation bypass.
*
* For instance, since a plain empty object has no annotations used for validation:
* - `validate({}, { })` // fails
* - `validate({}, { forbidUnknownValues: true })` // fails
* - `validate({}, { forbidUnknownValues: false })` // passes
* - `validate(new SomeAnnotatedEmptyClass(), { forbidUnknownValues: true })` // passes
* - `validate(new SomeAnnotatedEmptyClass(), { })` // passes
*/
forbidUnknownValues?: boolean;

Expand Down
8 changes: 4 additions & 4 deletions test/functional/validation-functions-and-decorators.spec.ts
Expand Up @@ -3662,15 +3662,15 @@ describe('Length', () => {
});

it('should return error object with proper data', () => {
const validationType = 'length';
const validationType = 'isLength';
const message = 'someProperty must be longer than or equal to ' + constraintToString(constraint1) + ' characters';
checkReturnedError(new MyClass(), ['', 'a'], validationType, message);
return checkReturnedError(new MyClass(), ['', 'a'], validationType, message);
});

it('should return error object with proper data', () => {
const validationType = 'length';
const validationType = 'isLength';
const message = 'someProperty must be shorter than or equal to ' + constraintToString(constraint2) + ' characters';
checkReturnedError(new MyClass(), ['aaaa', 'azzazza'], validationType, message);
return checkReturnedError(new MyClass(), ['aaaa', 'azzazza'], validationType, message);
});
});

Expand Down
22 changes: 13 additions & 9 deletions test/functional/validation-options.spec.ts
Expand Up @@ -946,28 +946,32 @@ describe('groups', () => {
const model1 = new MyClass();

it('should ignore decorators with groups if validating without groups', function () {
return validator.validate(model1, { strictGroups: true }).then(errors => {
return validator.validate(model1, { strictGroups: true, forbidUnknownValues: false }).then(errors => {
expect(errors).toHaveLength(0);
});
});

it('should ignore decorators with groups if validating with empty groups array', function () {
return validator.validate(model1, { strictGroups: true, groups: [] }).then(errors => {
return validator.validate(model1, { strictGroups: true, groups: [], forbidUnknownValues: false }).then(errors => {
expect(errors).toHaveLength(0);
});
});

it('should include decorators with groups if validating with matching groups', function () {
return validator.validate(model1, { strictGroups: true, groups: ['A'] }).then(errors => {
expect(errors).toHaveLength(1);
expectTitleContains(errors[0]);
});
return validator
.validate(model1, { strictGroups: true, groups: ['A'], forbidUnknownValues: false })
.then(errors => {
expect(errors).toHaveLength(1);
expectTitleContains(errors[0]);
});
});

it('should not include decorators with groups if validating with different groups', function () {
return validator.validate(model1, { strictGroups: true, groups: ['B'] }).then(errors => {
expect(errors).toHaveLength(0);
});
return validator
.validate(model1, { strictGroups: true, groups: ['B'], forbidUnknownValues: false })
.then(errors => {
expect(errors).toHaveLength(0);
});
});
});

Expand Down
4 changes: 2 additions & 2 deletions test/functional/validator-options.spec.ts
Expand Up @@ -24,10 +24,10 @@ describe('validator options', () => {
});
});

it('should returns error on unknown objects if forbidUnknownValues is true', function () {
test.each([[{ forbidUnknownValues: true }], [{}]])('should returns error on unknown objects with %s', options => {
const anonymousObject = { badKey: 'This should not pass.' };

return validator.validate(anonymousObject, { forbidUnknownValues: true }).then(errors => {
return validator.validate(anonymousObject, { ...options }).then(errors => {
expect(errors.length).toEqual(1);
expect(errors[0].target).toEqual(anonymousObject);
expect(errors[0].property).toEqual(undefined);
Expand Down
16 changes: 9 additions & 7 deletions test/functional/whitelist-validation.spec.ts
Expand Up @@ -52,12 +52,14 @@ describe('whitelist validation', () => {

model.unallowedProperty = 'non-whitelisted';

return validator.validate(model, { whitelist: true, forbidNonWhitelisted: true }).then(errors => {
expect(errors.length).toEqual(1);
expect(errors[0].target).toEqual(model);
expect(errors[0].property).toEqual('unallowedProperty');
expect(errors[0].constraints).toHaveProperty(ValidationTypes.WHITELIST);
expect(() => errors[0].toString()).not.toThrowError();
});
return validator
.validate(model, { whitelist: true, forbidNonWhitelisted: true, forbidUnknownValues: false })
.then(errors => {
expect(errors.length).toEqual(1);
expect(errors[0].target).toEqual(model);
expect(errors[0].property).toEqual('unallowedProperty');
expect(errors[0].constraints).toHaveProperty(ValidationTypes.WHITELIST);
expect(() => errors[0].toString()).not.toThrowError();
});
});
});