[
https://issues.apache.org/jira/browse/CAMEL-20839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-20839.
---------------------------------
Resolution: Fixed
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> 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)