You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/02/04 08:03:03 UTC
[camel] branch master updated: came-weka: The command is required
This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 757c682 came-weka: The command is required
757c682 is described below
commit 757c6826079929119047faf977941df725441c1d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 4 09:02:44 2020 +0100
came-weka: The command is required
---
components/camel-weka/src/main/docs/weka-component.adoc | 2 +-
.../java/org/apache/camel/component/weka/WekaConfiguration.java | 2 +-
.../camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java | 8 ++++----
docs/components/modules/ROOT/pages/weka-component.adoc | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/components/camel-weka/src/main/docs/weka-component.adoc b/components/camel-weka/src/main/docs/weka-component.adoc
index c3c12d9..911e094 100644
--- a/components/camel-weka/src/main/docs/weka-component.adoc
+++ b/components/camel-weka/src/main/docs/weka-component.adoc
@@ -61,7 +61,7 @@ with the following path and query parameters:
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
-| *command* | The command to use. The value can be one of: filter, model, read, write, push, pop, version | | Command
+| *command* | *Required* The command to use. The value can be one of: filter, model, read, write, push, pop, version | | Command
|===
diff --git a/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java b/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java
index 71536a4..5b082c9 100644
--- a/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java
+++ b/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java
@@ -29,7 +29,7 @@ public class WekaConfiguration {
filter, model, read, write, push, pop, version
}
- @UriPath(description = "The command to use.", enums = "filter,model,read,write,push,pop,version")
+ @UriPath(description = "The command to use.", enums = "filter,model,read,write,push,pop,version") @Metadata(required = true)
private Command command;
// Read/Write parameters
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java
index 26c5e04..c210a13 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java
@@ -294,8 +294,8 @@ public interface WekaEndpointBuilderFactory {
*
* Syntax: <code>weka:command</code>
*
- * Path parameter: command
- * The command to use
+ * Path parameter: command (required)
+ * The command to use.
* The value can be one of: filter, model, read, write, push, pop,
* version
*/
@@ -313,8 +313,8 @@ public interface WekaEndpointBuilderFactory {
*
* Syntax: <code>weka:command</code>
*
- * Path parameter: command
- * The command to use
+ * Path parameter: command (required)
+ * The command to use.
* The value can be one of: filter, model, read, write, push, pop, version
*/
static WekaEndpointBuilder weka(String path) {
diff --git a/docs/components/modules/ROOT/pages/weka-component.adoc b/docs/components/modules/ROOT/pages/weka-component.adoc
index 0f72d82..7404a2a 100644
--- a/docs/components/modules/ROOT/pages/weka-component.adoc
+++ b/docs/components/modules/ROOT/pages/weka-component.adoc
@@ -62,7 +62,7 @@ with the following path and query parameters:
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
-| *command* | The command to use. The value can be one of: filter, model, read, write, push, pop, version | | Command
+| *command* | *Required* The command to use. The value can be one of: filter, model, read, write, push, pop, version | | Command
|===