jsonpolice
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -9,2 +9,3 @@ import { SchemaOptions } from './global'; | ||
constructor(scope: string, opts: SchemaOptions); | ||
abstract schema(): Promise<any>; | ||
abstract validate(data: any, path: string): Promise<any>; | ||
@@ -24,2 +25,3 @@ static factories: { | ||
protected default(data: any): any; | ||
schema(): Promise<any>; | ||
validate(data: any, path?: string): Promise<any>; | ||
@@ -26,0 +28,0 @@ protected validateType(data: any, path: string): Promise<any>; |
@@ -282,2 +282,7 @@ "use strict"; | ||
} | ||
schema() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.data; | ||
}); | ||
} | ||
validate(data, path = '') { | ||
@@ -284,0 +289,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "jsonpolice", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "JSON Schema parser and validator", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
90289
1016