Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20839

camel-jbang - Run with openapi in sub folder does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.6.0
    • 4.7.0
    • camel-jbang
    • None
    • Unknown

    Description

      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.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"

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: