README.md in avromatic-3.0.1 vs README.md in avromatic-3.0.2
- old
+ new
@@ -70,11 +70,13 @@
* **schema_registry**: An `AvroSchemaRegistry::Client` or
`AvroTurf::ConfluentSchemaRegistry` object used to store Avro schemas
so that they can be referenced by id. Either `schema_registry` or
`registry_url` must be configured.
* **registry_url**: URL for the schema registry. Either `schema_registry` or
- `registry_url` must be configured.
+ `registry_url` must be configured. The `build_schema_registry!` method may
+ be used to create a caching schema registry client instance based on other
+ configuration values.
* **use_schema_fingerprint_lookup**: Avromatic supports a Schema Registry
[extension](https://github.com/salsify/avro-schema-registry#extensions) that
provides an endpoint to lookup existing schema ids by fingerprint.
A successful response from this GET request can be cached indefinitely.
The use of this additional endpoint can be disabled by setting this option to
@@ -89,9 +91,10 @@
```ruby
Avromatic.configure do |config|
config.schema_store = AvroTurf::SchemaStore.new(path: 'avro/schemas')
config.registry_url = Rails.configuration.x.avro_schema_registry_url
+ config.build_schema_registry!
config.build_messaging!
end
```
#### Decoding