README.md in avromatic-0.15.1 vs README.md in avromatic-0.17.0
- old
+ new
@@ -63,11 +63,11 @@
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
`false` and this is recommended if using a Schema Registry that does not support
the endpoint.
-* **messaging**: An `AvroTurf::Messaging` object to be shared by all generated models.
+* **messaging**: An `AvroTurf::Messaging` object to be shared by all generated models
The `build_messaging!` method may be used to create a `Avromatic::Messaging`
instance based on the other configuration values.
* **logger**: The logger to use for the schema registry client.
* [Custom Types](#custom-types)
@@ -315,9 +315,16 @@
Or just a value if only one schema is used:
```ruby
MyValue.avro_message_decode(message_value)
+```
+
+The schemas associated with a model can also be added to a schema registry without
+encoding a message:
+
+```ruby
+MyTopic.register_schemas!
```
#### Avromatic::Model::MessageDecoder
A stream of messages encoded from various models using the messaging approach