validate-value
Advanced tools
Comparing version 8.9.0 to 8.9.1
@@ -11,3 +11,5 @@ "use strict"; | ||
const ajv_1 = __importDefault(require("ajv")); | ||
const ajvInstance = new ajv_1.default(); | ||
const ajvInstance = new ajv_1.default({ | ||
allowUnionTypes: true | ||
}); | ||
ajv_formats_1.default(ajvInstance); | ||
@@ -14,0 +16,0 @@ ajvInstance.addFormat('alphanumeric', /[a-zA-Z0-9]/u); |
@@ -0,1 +1,8 @@ | ||
## [8.9.1](https://github.com/thenativeweb/validate-value/compare/8.9.0...8.9.1) (2020-11-27) | ||
### Bug Fixes | ||
* Allow union types. ([#233](https://github.com/thenativeweb/validate-value/issues/233)) ([fb66fe4](https://github.com/thenativeweb/validate-value/commit/fb66fe4294df848d7a2e2be14569bf9f035de628)) | ||
# [8.9.0](https://github.com/thenativeweb/validate-value/compare/8.8.1...8.9.0) (2020-11-26) | ||
@@ -2,0 +9,0 @@ |
@@ -7,3 +7,5 @@ import addFormats from 'ajv-formats'; | ||
const ajvInstance = new Ajv(); | ||
const ajvInstance = new Ajv({ | ||
allowUnionTypes: true | ||
}); | ||
@@ -10,0 +12,0 @@ addFormats(ajvInstance); |
{ | ||
"name": "validate-value", | ||
"version": "8.9.0", | ||
"version": "8.9.1", | ||
"description": "validate-value validates values against JSON schemas.", | ||
@@ -32,3 +32,3 @@ "contributors": [ | ||
"assertthat": "5.2.5", | ||
"roboter": "11.5.13", | ||
"roboter": "11.5.18", | ||
"semantic-release-configuration": "1.0.28" | ||
@@ -35,0 +35,0 @@ }, |
26308
399