This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit c0536753ca54a8b7d321d4ede345fbb3730c525d Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Wed Feb 21 09:21:20 2024 +0100 CAMEL-20410: documentation fixes for camel-jackson-protobuf - Fixed samples - Fixed grammar and typos - Fixed punctuation - Added and/or fixed links - Converted to use tabs --- .../src/main/docs/protobufJackson-dataformat.adoc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/components/camel-jackson-protobuf/src/main/docs/protobufJackson-dataformat.adoc b/components/camel-jackson-protobuf/src/main/docs/protobufJackson-dataformat.adoc index 7c2e205ac2e..4ccce5e5a20 100644 --- a/components/camel-jackson-protobuf/src/main/docs/protobufJackson-dataformat.adoc +++ b/components/camel-jackson-protobuf/src/main/docs/protobufJackson-dataformat.adoc @@ -30,12 +30,12 @@ from("kafka:topic"). to("log:info"); ------------------------------- -== Configuring the SchemaResolver +== Configuring the `SchemaResolver` Since Protobuf serialization is schema-based, this data format requires that you provide a SchemaResolver object -that is able to lookup the schema for each exchange that is going to be marshalled/unmarshalled. +that is able to look up the schema for each exchange that is going to be marshalled/unmarshalled. -You can add a single SchemaResolver to the registry and it will be looked up automatically. +You can add a single SchemaResolver to the registry, and it will be looked up automatically. Or you can explicitly specify the reference to a custom SchemaResolver. == Protobuf Jackson Options @@ -49,16 +49,15 @@ include::partial$dataformat-options.adoc[] You can configure `JacksonProtobufDataFormat` to use a custom `ProtobufMapper` in case you need more control of the mapping configuration. -If you setup a single `ProtobufMapper` in the registry, then Camel will automatic lookup and use this `ProtobufMapper`. +If you set up a single `ProtobufMapper` in the registry, then Camel will automatic lookup and use this `ProtobufMapper`. == Dependencies -To use Protobuf Jackson in your camel routes you need to add the dependency -on *camel-jackson-protobuf* which implements this data format. +To use Protobuf Jackson in your Camel routes, you need to add the dependency +on *camel-jackson-protobuf*, which implements this data format. -If you use maven you could just add the following to your pom.xml, -substituting the version number for the latest & greatest release (see -the download page for the latest versions). +If you use Maven, you could add the following to your pom.xml, +substituting the version number for the latest & greatest release. [source,xml] ----------------------------------------------------------