Add validate on JsonSchema
This commit is contained in:
parent
980a1ddf74
commit
31dbeab67c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user