You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by oa...@apache.org on 2021/01/27 10:38:46 UTC

[camel] branch master updated: Fix small typos in stitch docs

This is an automated email from the ASF dual-hosted git repository.

oalsafi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new b55a001  Fix small typos in stitch docs
b55a001 is described below

commit b55a0016d5dccb14429019b32d866bac13f4ddb6
Author: Omar Al-Safi <om...@gmail.com>
AuthorDate: Wed Jan 27 11:38:19 2021 +0100

    Fix small typos in stitch docs
---
 components/camel-stitch/src/main/docs/stitch-component.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-stitch/src/main/docs/stitch-component.adoc b/components/camel-stitch/src/main/docs/stitch-component.adoc
index 7bfac91..de02a1b 100644
--- a/components/camel-stitch/src/main/docs/stitch-component.adoc
+++ b/components/camel-stitch/src/main/docs/stitch-component.adoc
@@ -208,7 +208,7 @@ from("direct:sendStitch")
 from("direct:sendStitch")
      .process(exchange -> {
          exchange.getMessage().setHeader(StitchConstants.SCHEMA, StitchSchema.builder().addKeyword("field_1", "string").build());
-         exchange.getMessage().setHeader(StitchConstants.KEY_NAMES, Collections.singleton("field_1"));
+         exchange.getMessage().setHeader(StitchConstants.KEY_NAMES, "field_1");
          exchange.getMessage().setHeader(StitchConstants.TABLE_NAME, "table_1");
 
          final StitchMessage stitchMessage = StitchMessage.builder()
@@ -237,7 +237,7 @@ from("direct:sendStitch")
         data.put(StitchRequestBody.SCHEMA, Collections.singletonMap("properties", properties));
         data.put(StitchRequestBody.MESSAGES,
                 Collections.singletonList(Collections.singletonMap("data", Collections.singletonMap("id", 2))));
-        data.put(StitchRequestBody.KEY_NAMES, Collections.singletonList("test_key"));
+        data.put(StitchRequestBody.KEY_NAMES, "test_key");
 
         exchange.getMessage().setBody(data);
      })
@@ -252,7 +252,7 @@ from("direct:sendStitch")
 from("direct:sendStitch")
      .process(exchange -> {
          exchange.getMessage().setHeader(StitchConstants.SCHEMA, StitchSchema.builder().addKeyword("field_1", "string").build());
-         exchange.getMessage().setHeader(StitchConstants.KEY_NAMES, Collections.singleton("field_1"));
+         exchange.getMessage().setHeader(StitchConstants.KEY_NAMES, "field_1");
          exchange.getMessage().setHeader(StitchConstants.TABLE_NAME, "table_1");
 
         final StitchMessage stitchMessage1 = StitchMessage.builder()