[ https://issues.apache.org/jira/browse/CAMEL-14697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-14697 started by Zoran Regvart. --------------------------------------------- > openapi-rest-dsl-generator not considering path parameters > ---------------------------------------------------------- > > Key: CAMEL-14697 > URL: https://issues.apache.org/jira/browse/CAMEL-14697 > Project: Camel > Issue Type: Improvement > Components: tooling > Affects Versions: 3.1.0 > Reporter: Zoran Regvart > Assignee: Zoran Regvart > Priority: Major > > The {{openapi-rest-dsl-generator}} doesn't generate a parameter configuration > for parameters that are given on a path rather than on a operation. > For example for this OpenAPI document: > {code} > { > "openapi": "3.0.2", > "info": { > "title": "Test API", > "version": "1.0.0", > "description": "A brand new API with no content. Go nuts!" > }, > "paths": { > "/test/{myparam}": { > "get": { > "responses": { > "200": { > "description": "response" > } > }, > "operationId": "op" > }, > "parameters": [ > { > "$ref": "#/components/parameters/MyParam" > } > ] > } > }, > "components": { > "parameters": { > "MyParam": { > "name": "myparam", > "in": "path", > "required": true > } > } > } > } > {code} > There is no {{<param>}} tag in XML DSL: > {code} > <?xml version="1.0" encoding="UTF-8"?><rests > xmlns="http://camel.apache.org/schema/spring"><restConfiguration > component="servlet"/> > <rest> > <get id="op" uri="/test/{myparam}"> > <to uri="direct:op"/> > </get> > </rest> > </rests> > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)