Add validate on JsonSchema

This commit is contained in:
toasted-nutbread 2020-01-26 14:59:37 -05:00
parent 980a1ddf74
commit 31dbeab67c

View File

@ -532,6 +532,10 @@ class JsonSchema {
return new Proxy(target, new JsonSchemaProxyHandler(schema));
}
static validate(value, schema) {
return JsonSchemaProxyHandler.validate(value, schema);
}
static getValidValueOrDefault(schema, value) {
return JsonSchemaProxyHandler.getValidValueOrDefault(schema, value);
}