function tv4_validate(typename, query) {
    var id = getSchemaIDFromTypename(typename);
    var schema = tv4.getSchema(id);
    if (schema == null) {
        var error = { code: 0, message: 'Schema not found', dataPath: '', schemaPath: id };
        return { valid: false, missing: [], errors: [error] };
    }
    var report = tv4.validateMultiple(query, schema);
    return report;
}
// Validate the given JSON against the schema for typename.
Validate the given JSON against the schema for typename.
Validate the given JSON against the schema for typename .
function tv4_validate(typename, query) {
    var id = getSchemaIDFromTypename(typename);
    var schema = tv4.getSchema(id);
    if (schema == null) {
        var error = { code: 0, message: 'Schema not found', dataPath: '', schemaPath: id };
        return { valid: false, missing: [], errors: [error] };
    }
    var report = tv4.validateMultiple(query, schema);
    return report;
}
function tv4_validate ( typename , query ) { var id = getSchemaIDFromTypename ( typename ) ; var schema = tv4 . getSchema ( id ) ; if ( schema == null ) { var error = { code : 0 , message : 'Schema not found' , dataPath : '' , schemaPath : id } ; return { valid : false , missing : [ ] , errors : [ error ] } ; } var report = tv4 . validateMultiple ( query , schema ) ; return report ; }
Validate the given JSON against the schema for typename.
Validate the given JSON against the schema for typename .