You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/05/17 13:54:46 UTC
[camel-kamelets] 03/05: regen doc
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 379385a3621ec0862255e48b942797a443b89472
Author: nicolaferraro <ni...@gmail.com>
AuthorDate: Thu May 13 12:22:26 2021 +0200
regen doc
---
docs/modules/ROOT/pages/timer-source.adoc | 1 +
.../src/main/resources/kamelets/timer-source.kamelet.yaml | 11 ++++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/docs/modules/ROOT/pages/timer-source.adoc b/docs/modules/ROOT/pages/timer-source.adoc
index 658063c..06e11e9 100644
--- a/docs/modules/ROOT/pages/timer-source.adoc
+++ b/docs/modules/ROOT/pages/timer-source.adoc
@@ -12,6 +12,7 @@ The following table summarizes the configuration options available for the `time
|===
| Property| Name| Description| Type| Default| Example
| *message {empty}* *| Message| The message to generate| string| | `"hello world"`
+| contentType| Content Type| The content type of the message being generated| string| `"text/plain"`|
| period| Period| The interval between two events in milliseconds| integer| `1000`|
|===
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/timer-source.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/timer-source.kamelet.yaml
index 06d3aaf..be6057c 100644
--- a/library/camel-kamelets-catalog/src/main/resources/kamelets/timer-source.kamelet.yaml
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/timer-source.kamelet.yaml
@@ -44,9 +44,11 @@ spec:
description: The message to generate
type: string
example: hello world
- types:
- out:
- mediaType: text/plain
+ contentType:
+ title: Content Type
+ description: The content type of the message being generated
+ type: string
+ default: text/plain
dependencies:
- "camel:core"
- "camel:timer"
@@ -59,4 +61,7 @@ spec:
steps:
- set-body:
constant: "{{message}}"
+ - set-header:
+ name: "Content-Type"
+ constant: "{{contentType}"
- to: kamelet:sink