lburgazzoli commented on a change in pull request #1009: Fix #706 Improve 
RuntimeCatalogConfig docs
URL: https://github.com/apache/camel-quarkus/pull/1009#discussion_r401577941
 
 

 ##########
 File path: 
extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelRuntimeCatalog.java
 ##########
 @@ -28,7 +28,8 @@ public CamelRuntimeCatalog(CamelConfig.RuntimeCatalogConfig 
config) {
     @Override
     public String modelJSonSchema(String name) {
         if (!config.models) {
-            return null;
+            throw new RuntimeException(
 
 Review comment:
   We need to check if throwing an exception is the right thing, I do not 
remember if there is any assumption in the code path that invokes this method

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to