Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x cb6fc94c4 -> b83298c7d
  refs/heads/master d1492924d -> 9ed3ea1f2


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/9ed3ea1f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9ed3ea1f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9ed3ea1f

Branch: refs/heads/master
Commit: 9ed3ea1f2426ba988654ac74f15d42288024edc7
Parents: d149292
Author: Claus Ibsen <davscl...@apache.org>
Authored: Thu Dec 31 10:02:16 2015 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Thu Dec 31 10:02:16 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/9ed3ea1f/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")) {

Reply via email to