raml-json-validation
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -7,2 +7,4 @@ export declare class JSONValidator { | ||
isResourceLoaded(reference: string): boolean; | ||
validate(content: any, schema: any): void; | ||
getLastErrors(): any[]; | ||
} |
@@ -19,2 +19,8 @@ "use strict"; | ||
}; | ||
JSONValidator.prototype.validate = function (content, schema) { | ||
this.validator.validate(content, schema); | ||
}; | ||
JSONValidator.prototype.getLastErrors = function () { | ||
return this.validator.getLastErrors(); | ||
}; | ||
return JSONValidator; | ||
@@ -21,0 +27,0 @@ }()); |
{ | ||
"name": "raml-json-validation", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
139599
3788