docs: 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;
  }