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 2015/12/31 10:02:56 UTC
[2/2] camel git commit: Camel component doc fix issue in generated
schema
Camel component doc fix issue in generated schema
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b83298c7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b83298c7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b83298c7
Branch: refs/heads/camel-2.16.x
Commit: b83298c7dec624dd5e04f60d8f5543fba968d1e1
Parents: cb6fc94
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Dec 31 10:02:16 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Dec 31 10:02:45 2015 +0100
----------------------------------------------------------------------
.../java/org/apache/camel/tools/apt/helper/JsonSchemaHelper.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/b83298c7/tooling/apt/src/main/java/org/apache/camel/tools/apt/helper/JsonSchemaHelper.java
----------------------------------------------------------------------
diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/helper/JsonSchemaHelper.java b/tooling/apt/src/main/java/org/apache/camel/tools/apt/helper/JsonSchemaHelper.java
index 73f8a3b..c3fa7c7 100644
--- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/helper/JsonSchemaHelper.java
+++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/helper/JsonSchemaHelper.java
@@ -16,6 +16,7 @@
*/
package org.apache.camel.tools.apt.helper;
+import java.io.File;
import java.net.URI;
import java.net.URL;
import java.util.ArrayList;
@@ -128,6 +129,8 @@ public final class JsonSchemaHelper {
return "object";
} else if (type.equals(URI.class.getName()) || type.equals(URL.class.getName())) {
return "string";
+ } else if (type.equals(File.class.getName())) {
+ return "string";
} else if (type.startsWith("java.lang.Class")) {
return "string";
} else if (type.startsWith("java.util.List") || type.startsWith("java.util.Collection")) {