CAMEL-10842: Component JSon schema - JSon values should not always be string types
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e5a35595 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e5a35595 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e5a35595 Branch: refs/heads/master Commit: e5a355952e221fac38c090df2db07a376b27a2bd Parents: 197b54a Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Feb 16 13:16:02 2017 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Feb 16 13:16:02 2017 +0100 ---------------------------------------------------------------------- components/camel-irc/src/main/docs/irc-component.adoc | 2 +- .../java/org/apache/camel/component/irc/IrcConfiguration.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/e5a35595/components/camel-irc/src/main/docs/irc-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-irc/src/main/docs/irc-component.adoc b/components/camel-irc/src/main/docs/irc-component.adoc index 13e8a15..b496788 100644 --- a/components/camel-irc/src/main/docs/irc-component.adoc +++ b/components/camel-irc/src/main/docs/irc-component.adoc @@ -51,7 +51,7 @@ The IRC component supports 26 endpoint options which are listed below: |======================================================================= | Name | Group | Default | Java Type | Description | hostname | common | | String | *Required* Hostname for the IRC chat server -| port | common | 6667 | int | Port number for the IRC chat server +| port | common | | int | Port number for the IRC chat server. If no port is configured then a default port of either 6667 6668 or 6669 is used. | autoRejoin | common | true | boolean | Whether to auto re-join when being kicked | namesOnJoin | common | false | boolean | Sends NAMES command to channel after joining it. link onReply has to be true in order to process the result which will have the header value irc.num = '353'. | nickname | common | | String | The nickname used in chat. http://git-wip-us.apache.org/repos/asf/camel/blob/e5a35595/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java b/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java index beebf81..abaeb65 100644 --- a/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java +++ b/components/camel-irc/src/main/java/org/apache/camel/component/irc/IrcConfiguration.java @@ -48,7 +48,7 @@ public class IrcConfiguration implements Cloneable { @UriPath @Metadata(required = "true") private String hostname; - @UriPath(defaultValue = "6667,6668,6669") + @UriPath private int port; private int[] ports = {6667, 6668, 6669}; @UriParam(label = "security", secret = true) @@ -295,7 +295,7 @@ public class IrcConfiguration implements Cloneable { } /** - * Port number for the IRC chat server + * Port number for the IRC chat server. If no port is configured then a default port of either 6667, 6668 or 6669 is used. */ public void setPort(int port) { this.port = port;