Skip to content

Commit 16c7da0

Browse files
committed
update changelog
1 parent 8d642aa commit 16c7da0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<a name="1.8.0"></a>
2+
# 1.8.0 (2020-10-18)
3+
4+
## New `nullable` rule attribute in [#185](https://github.com/icebob/fastest-validator/pull/185)
5+
6+
```js
7+
const schema = {
8+
age: { type: "number", nullable: true }
9+
}
10+
v.validate({ age: 42 }, schema); // Valid
11+
v.validate({ age: null }, schema); // Valid
12+
v.validate({ age: undefined }, schema); // Fail because undefined is disallowed
13+
v.validate({}, schema); // Fail because undefined is disallowed
14+
```
15+
16+
## Changes
17+
- Shorthand for array `foo: "string[]" // means array of string` in [#190](https://github.com/icebob/fastest-validator/pull/190)
18+
- allow converting `objectID` to `string` in in [#196](https://github.com/icebob/fastest-validator/pull/196)
19+
-
120
--------------------------------------------------
221
<a name="1.7.0"></a>
322
# 1.7.0 (2020-08-30)

0 commit comments

Comments
 (0)