You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/12/14 06:07:00 UTC

[jira] [Updated] (CAMEL-17326) camel-rest-swagger: Resolve Swagger references

     [ https://issues.apache.org/jira/browse/CAMEL-17326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-17326:
--------------------------------
    Fix Version/s: 3.15.0
                       (was: 3.14.0)

> camel-rest-swagger: Resolve Swagger references
> ----------------------------------------------
>
>                 Key: CAMEL-17326
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17326
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-rest-swagger
>    Affects Versions: 3.13.0
>            Reporter: Jeremy Ross
>            Priority: Major
>             Fix For: 3.15.0
>
>
> Swagger supports references in the form of [JSON References|https://swagger.io/docs/specification/using-ref/]. 
> E.g., a swagger spec could contain a set of reusable parameter definitions:
> {code:json}
> "parameters": {
>   "offset": {
>     "description": "Indicates how many items should be skipped before returning results.",
>     "in": "query",
>     "name": "offset",
>     "required": false,
>     "default": 0,
>     "format": "int32",
>     "type": "integer"
>   }
> }
> {code}
> Then later in a path/operation definition, reference that parameter definition:
> {code:json}
> "parameters": [
>   {
>     "$ref": "#/parameters/offset"
>   }
> ]
> {code}
> We should have an option to resolve these references so they are usable from Camel.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)