You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jiri Ondrusek (Jira)" <ji...@apache.org> on 2023/05/17 12:59:00 UTC

[jira] [Created] (CAMEL-19364) Rest-openapi: lookup mechanism does not work after changes from Camel-18963

Jiri Ondrusek created CAMEL-19364:
-------------------------------------

             Summary: Rest-openapi: lookup mechanism does not work after changes from Camel-18963
                 Key: CAMEL-19364
                 URL: https://issues.apache.org/jira/browse/CAMEL-19364
             Project: Camel
          Issue Type: Bug
          Components: camel-rest-openapi
    Affects Versions: 4.0
            Reporter: Jiri Ondrusek


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:
{code:java}
    @Test
    public void testClasspath() throws Exception{
        Producer p =   context().getEndpoint("rest-openapi:addPet?specificationUri=classpath:openapi.json").createProducer();
        Assertions.assertNotNull(p);
    }
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)