[
https://issues.apache.org/jira/browse/CAMEL-21411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894621#comment-17894621
]
Claus Ibsen commented on CAMEL-21411:
-------------------------------------
{{org.apache.camel.FailedToStartRouteException: Failed to start route route1
because of The given OpenApi specification cannot be loaded from: orders.json}}
{{at org.apache.camel.impl.engine.RouteService.setUp(RouteService.java:134)}}
{{at
org.apache.camel.impl.engine.InternalRouteStartupManager.doInitRoutes(InternalRouteStartupManager.java:92)}}
> camel-openapi-rest - Should default load specification from classpath
> ---------------------------------------------------------------------
>
> Key: CAMEL-21411
> URL: https://issues.apache.org/jira/browse/CAMEL-21411
> Project: Camel
> Issue Type: Improvement
> Components: camel-rest-openapi
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.9.0
>
>
> Both when using camel-jbang and for CSB/CEQ etc
>
> {code:java}
> - rest:
> openApi:
> specification: orders.json {code}
>
> You need to use classpath to make it work
>
> {code:java}
> - rest: openApi: specification: classpath:orders.json {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)