spec/lib/task-data/schemas/schema-ut-helper.js
function getSchema(ajv, name) {
    var result = ajv.getSchema(name);
    if (!result || !result.schema) {
        throw new Error('cannot find the schema with name "' + name + '".');
    }
    return result.schema;
}
function getSchema(ajv, name) {
    var result = ajv.getSchema(name);
    if (!result || !result.schema) {
        throw new Error('cannot find the schema with name "' + name + '".');
    }
    return result.schema;
}
function getSchema ( ajv , name ) { var result = ajv . getSchema ( name ) ; if ( ! result || ! result . schema ) { throw new Error ( 'cannot find the schema with name "' + name + '".' ) ; } return result . schema ; }
Get the schema definition via name
@param {Object} ajv - The Ajv instance
@param {String} name - The schema name or id
@return {Object} The schema definition.
Get the schema definition via name