Skip to content

Commit

Permalink
add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Apr 4, 2018
1 parent 91cf92b commit 311fa83
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--------------------------------------------------
<a name="0.6.6"></a>
# 0.6.6 (2018-04-04)

# Access to the original object in custom validator [#5](https://github.com/icebob/fastest-validator/issues/5)

```js
const schema = {
email: {
type: "custom",
check(value, schema, stack, obj) {
return obj.username || obj.email ? null : this.makeError(...);
}
}
};
```

0 comments on commit 311fa83

Please sign in to comment.