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

Rest-openapi: lookup mechanism does not work after changes from Camel-18963

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.0-RC1, 4.0.0
    • camel-rest-openapi
    • None
    • Unknown

    Description

      I was trying to synchronize camel-quarkus with current Camel from `main` branch.

      I noticed failures related to fix https://github.com/apache/camel/commit/e2ad230d86fcbbc1e3c4ad5a9daf01aa3127eb42 in the Camel-rest-openapi component.

      According to the doc, the url in component can be specified i.g. "classpath:...", "bean:...". At least these 2 options does not work.

      It can be verified by a simple test:

          @Test
          public void testClasspath() throws Exception{
              Producer p =   context().getEndpoint("rest-openapi:addPet?specificationUri=classpath:openapi.json").createProducer();
              Assertions.assertNotNull(p);
          }
      

      Attachments

        Issue Links

          Activity

            People

              jondruse Jiri Ondrusek
              jondruse Jiri Ondrusek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: