func RecordSchema(recordSchemaJSON string) RecordSetter {
	var schema map[string]interface{}
	err := json.Unmarshal([]byte(recordSchemaJSON), &schema)
	if err != nil {
		err = newCodecBuildError("record", err)
	}

	return func(r *Record) error {
		if err == nil {
			r.schemaMap = schema
		}
		return err
	}
}
// RecordSchema specifies the schema of the record to
// create. Schema must be a JSON string.
RecordSchema specifies the schema of the record to
create. Schema must be a JSON string.
// RecordSchema specifies the schema of the record to // create . Schema must be a JSON string .
func RecordSchema(recordSchemaJSON string) RecordSetter {
	var schema map[string]interface{}
	err := json.Unmarshal([]byte(recordSchemaJSON), &schema)
	if err != nil {
		err = newCodecBuildError("record", err)
	}
	return func(r *Record) error {
		if err == nil {
			r.schemaMap = schema
		}
		return err
	}
}
func RecordSchema ( recordSchemaJSON string ) RecordSetter { var schema map [ string ] interface { } err := json . Unmarshal ( [ ] byte ( recordSchemaJSON ) , & schema ) if err != nil { err = newCodecBuildError ( " " , err ) } return func ( r * Record ) error { if err == nil { r . schemaMap = schema } return err } }
RecordSchema specifies the schema of the record to
create.
RecordSchema specifies the schema of the record to create .