@openaddresses/batch-schema 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,11 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v2.0.0
14
+
15
+ - :tada: Add support for populating `default` keys in schema
16
+ - :arrow_up: General Dep Update
17
+
13
18
  ### v1.0.1
14
19
 
15
20
  - :bug: Check for schema in library before looking for schema in calling project
package/lib/schema.js CHANGED
@@ -54,6 +54,8 @@ class Schemas {
54
54
  }
55
55
 
56
56
  this.validator = new Validator({
57
+ removeAdditional: true,
58
+ useDefaults: true,
57
59
  allErrors: true
58
60
  });
59
61
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openaddresses/batch-schema",
3
3
  "root": true,
4
- "version": "1.0.1",
4
+ "version": "2.0.0",
5
5
  "description": "Strongly Validated JSON Schema support for address",
6
6
  "repository": "git@github.com:openaddresses/batch",
7
7
  "author": "ingalls <nick@ingalls.ca>",