We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91cf92b commit 311fa83Copy full SHA for 311fa83
CHANGELOG.md
@@ -0,0 +1,16 @@
1
+--------------------------------------------------
2
+<a name="0.6.6"></a>
3
+# 0.6.6 (2018-04-04)
4
+
5
+# Access to the original object in custom validator [#5](https://github.com/icebob/fastest-validator/issues/5)
6
7
+```js
8
+const schema = {
9
+ email: {
10
+ type: "custom",
11
+ check(value, schema, stack, obj) {
12
+ return obj.username || obj.email ? null : this.makeError(...);
13
+ }
14
15
+};
16
+```
0 commit comments