lib/schema-registry.js
function typeFromSchemaResponse(schema, parseOptions) {
  var schemaType = avro.parse(schema);

  //check if the schema has been previouisly parsed and added to the registry
  if(typeof parseOptions.registry === 'object' && typeof parseOptions.registry[schemaType.name] !== 'undefined'){
    return parseOptions.registry[schemaType.name];
  }

  return avro.parse(schema, parseOptions);
}
function typeFromSchemaResponse(schema, parseOptions) {
  var schemaType = avro.parse(schema);

  //check if the schema has been previouisly parsed and added to the registry
  if(typeof parseOptions.registry === 'object' && typeof parseOptions.registry[schemaType.name] !== 'undefined'){
    return parseOptions.registry[schemaType.name];
  }

  return avro.parse(schema, parseOptions);
}
function typeFromSchemaResponse ( schema , parseOptions ) { var schemaType = avro . parse ( schema ) ; //check if the schema has been previouisly parsed and added to the registry if ( typeof parseOptions . registry === 'object' && typeof parseOptions . registry [ schemaType . name ] !== 'undefined' ) { return parseOptions . registry [ schemaType . name ] ; } return avro . parse ( schema , parseOptions ) ; }
Get the avro RecordType from a schema response.

@return {RecordType} An avro RecordType representing the parsed avro schema.
Get the avro RecordType from a schema response .