You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/06/05 12:26:00 UTC
[jira] [Created] (CAMEL-20839) camel-jbang - Run with openapi in sub folder does not work
Claus Ibsen created CAMEL-20839:
-----------------------------------
Summary: camel-jbang - Run with openapi in sub folder does not work
Key: CAMEL-20839
URL: https://issues.apache.org/jira/browse/CAMEL-20839
Project: Camel
Issue Type: Bug
Components: camel-jbang
Affects Versions: 4.6.0
Reporter: Claus Ibsen
Fix For: 4.7.0
To reproduce the issue use this example: [https://github.com/apache/camel-kamelets-examples/tree/main/jbang/open-api] and move greetings-api.json to a subfolder 'apis'. Then run 'camel run --open-api apis/greetings-api.json Greetings.java' and it throws: "The given OpenApi specification cannot be loaded from: greetings-api.json ... Cannot invoke "[java.net|http://java.net/].URI.toString()" because the return value of "org.apache.camel.spi.Resource.getURI()" is null" . It doesn't work even if I use quotes "apis/greetings-api.json"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)