We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae70a4 commit 6ab6b06Copy full SHA for 6ab6b06
README.md
@@ -287,9 +287,10 @@ $registry->addKeySchemaMappingForTopic(
287
new KafkaAvroSchema('keySchema' , 9 /* , AvroSchema $definition */)
288
);
289
290
-// if you are only decoding key or value, you can pass that mode as additional third argument
291
-// per default both key and body will get decoded
292
-$decoder = new AvroDecoder($registry, $recordSerializer /*, AvroDecoderInterface::DECODE_BODY */);
+// If you are only encoding / decoding key or value, only register the schema(s) you need.
+// It is advised against doing that though, some tools might not play
+// nice if you don't fully encode your message
293
+$decoder = new AvroDecoder($registry, $recordSerializer);
294
295
$consumer = KafkaConsumerBuilder::create()
296
->withAdditionalConfig(
0 commit comments