@divvydiary/divvydiary-json-schemas 0.9.3 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divvydiary/divvydiary-json-schemas",
3
- "version": "0.9.3",
3
+ "version": "0.10.0",
4
4
  "description": "JSON Schemas for DivvyDiary.com",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,6 +28,7 @@
28
28
  "@adobe/jsonschema2md": "^6.1.1",
29
29
  "ajv": "^8.6.2",
30
30
  "ajv-formats": "^2.1.1",
31
+ "ajv-keywords": "^5.1.0",
31
32
  "glob": "^7.1.7",
32
33
  "husky": "^7.0.1",
33
34
  "prettier": "^2.3.2",
@@ -257,7 +257,8 @@
257
257
  "minLength": 12,
258
258
  "maxLength": 12,
259
259
  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]{1}$",
260
- "example": "US88160R1014"
260
+ "example": "US88160R1014",
261
+ "transform": ["trim", "toUpperCase"]
261
262
  },
262
263
  "password": {
263
264
  "type": "string",
package/test.js CHANGED
@@ -10,6 +10,8 @@ var ajv = new Ajv({
10
10
  coerceTypes: true,
11
11
  });
12
12
 
13
+ require("ajv-keywords")(ajv);
14
+
13
15
  ajv.addKeyword("example");
14
16
 
15
17
  addFormats(ajv);