@openaddresses/batch-schema 9.1.0 → 9.3.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,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v9.3.0
14
+
15
+ - :rocket: Coerce types on output
16
+
17
+ ### v9.2.0
18
+
19
+ - :rocket: Use Defaults in response middleware
20
+
13
21
  ### v9.1.0
14
22
 
15
23
  - :rocket: Only attempt to load js and ts files
package/lib/middleware.js CHANGED
@@ -8,7 +8,9 @@ import Generic from '@openaddresses/batch-generic';
8
8
  const ajv = addFormats(new Ajv({
9
9
  strict: false,
10
10
  allErrors: true,
11
- removeAdditional: true
11
+ useDefaults: true,
12
+ removeAdditional: true,
13
+ coerceTypes: true
12
14
  }));
13
15
 
14
16
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "root": true,
5
5
  "main": "index.js",
6
- "version": "9.1.0",
6
+ "version": "9.3.0",
7
7
  "description": "Strongly Validated JSON Schema support for address",
8
8
  "repository": "git@github.com:openaddresses/batch-schema",
9
9
  "author": "ingalls <nick@ingalls.ca>",