Skip to content

Commit 311fa83

Browse files
committed
add changelog
1 parent 91cf92b commit 311fa83

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)