validate-value
Advanced tools
Comparing version 7.3.1 to 8.0.0
import Ajv from 'ajv'; | ||
import { JSONSchema4 } from 'json-schema'; | ||
import { JSONSchema7 } from 'json-schema'; | ||
declare class Value { | ||
schema: JSONSchema4; | ||
schema: JSONSchema7; | ||
protected validateInternal: Ajv.ValidateFunction; | ||
constructor(schema: JSONSchema4); | ||
constructor(schema: JSONSchema7); | ||
validate(value: any, { valueName, separator }?: { | ||
@@ -8,0 +8,0 @@ valueName?: string; |
@@ -0,1 +1,13 @@ | ||
# [8.0.0](https://github.com/thenativeweb/validate-value/compare/7.3.1...8.0.0) (2020-10-29) | ||
### Features | ||
* Update used type to JSONSchema 7. ([#190](https://github.com/thenativeweb/validate-value/issues/190)) ([bd4ffc2](https://github.com/thenativeweb/validate-value/commit/bd4ffc26e7b3ce1afa3aa8239e7881ea6d624d5e)) | ||
### BREAKING CHANGES | ||
* JSONSchema7 is not compatible with JSONSchema4. | ||
## [7.3.1](https://github.com/thenativeweb/validate-value/compare/7.3.0...7.3.1) (2020-10-12) | ||
@@ -2,0 +14,0 @@ |
import Ajv from 'ajv'; | ||
import { JSONSchema4 } from 'json-schema'; | ||
import { JSONSchema7 } from 'json-schema'; | ||
import { ValidationError } from './ValidationError'; | ||
@@ -10,7 +10,7 @@ | ||
class Value { | ||
public schema: JSONSchema4; | ||
public schema: JSONSchema7; | ||
protected validateInternal: Ajv.ValidateFunction; | ||
public constructor (schema: JSONSchema4) { | ||
public constructor (schema: JSONSchema7) { | ||
this.schema = schema; | ||
@@ -17,0 +17,0 @@ this.validateInternal = ajvInstance.compile(schema); |
{ | ||
"name": "validate-value", | ||
"version": "7.3.1", | ||
"version": "8.0.0", | ||
"description": "validate-value validates values against JSON schemas.", | ||
@@ -27,4 +27,4 @@ "contributors": [ | ||
"assertthat": "5.2.1", | ||
"roboter": "11.3.12", | ||
"semantic-release-configuration": "1.0.21" | ||
"roboter": "11.4.5", | ||
"semantic-release-configuration": "1.0.23" | ||
}, | ||
@@ -31,0 +31,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12287