@naturalcycles/nodejs-lib
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,8 @@ | ||
## [4.0.1](https://github.com/NaturalCycles/nodejs-lib/compare/v4.0.0...v4.0.1) (2019-03-10) | ||
### Bug Fixes | ||
* joi stripUnknown.arrays=false (very important!) ([b874766](https://github.com/NaturalCycles/nodejs-lib/commit/b874766)) | ||
# [4.0.0](https://github.com/NaturalCycles/nodejs-lib/compare/v3.0.1...v4.0.0) (2019-03-09) | ||
@@ -2,0 +9,0 @@ |
@@ -18,3 +18,9 @@ "use strict"; | ||
objects: true, | ||
arrays: true, | ||
// true: it will SILENTLY strip invalid values from arrays. Very dangerous! Can lead to data loss! | ||
// false: it will THROW validation error if any of array items is invalid | ||
// Q: is it invalid if it has unknown properties? | ||
// A: no, unknown properties are just stripped (in both 'false' and 'true' states), array is still valid | ||
// Q: will it strip or keep unknown properties in array items?.. | ||
// A: strip | ||
arrays: false, | ||
}, | ||
@@ -21,0 +27,0 @@ presence: 'required', |
{ | ||
"name": "@naturalcycles/nodejs-lib", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "del ./dist && tsc", |
@@ -24,3 +24,9 @@ /* | ||
objects: true, | ||
arrays: true, // let's be very careful with that! https://github.com/hapijs/joi/issues/658 | ||
// true: it will SILENTLY strip invalid values from arrays. Very dangerous! Can lead to data loss! | ||
// false: it will THROW validation error if any of array items is invalid | ||
// Q: is it invalid if it has unknown properties? | ||
// A: no, unknown properties are just stripped (in both 'false' and 'true' states), array is still valid | ||
// Q: will it strip or keep unknown properties in array items?.. | ||
// A: strip | ||
arrays: false, // let's be very careful with that! https://github.com/hapijs/joi/issues/658 | ||
}, | ||
@@ -27,0 +33,0 @@ presence: 'required', |
Sorry, the diff of this file is not supported yet
59117
1123