camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-11088: camel-swagger-java: schema objects in definitions could not be referenced. Make that code line the same as in 2.18.x branch.
Date Wed, 12 Apr 2017 11:03:48 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 54a67b00c -> bd221e8b8


CAMEL-11088: camel-swagger-java: schema objects in definitions could not be referenced. Make
that code line the same as in 2.18.x branch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bd221e8b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bd221e8b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bd221e8b

Branch: refs/heads/camel-2.17.x
Commit: bd221e8b870e7922a65976225388320710a97e67
Parents: 54a67b0
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Apr 12 13:03:41 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Apr 12 13:03:41 2017 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/swagger/RestSwaggerReader.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/bd221e8b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
----------------------------------------------------------------------
diff --git a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
index f5e1b63..577733a 100644
--- a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
+++ b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/RestSwaggerReader.java
@@ -512,7 +512,7 @@ public class RestSwaggerReader {
             if (swagger.getDefinitions() != null && swagger.getDefinitions().get(entry.getKey())
!= null) {
                 Model oldModel = swagger.getDefinitions().get(entry.getKey());
                 if (oldModel.getVendorExtensions() != null && !oldModel.getVendorExtensions().isEmpty())
{
-                    oldExt = oldModel.getVendorExtensions().get("x-className") == null;
+                    oldExt = oldModel.getVendorExtensions().get("x-className") != null;
                 }
             }
 


Mime
View raw message