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

camel-rest-swagger: Resolve Swagger references

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.13.0
    • 3.15.0
    • camel-rest-swagger
    • None
    • Unknown

    Description

      Swagger supports references in the form of JSON References.

      E.g., a swagger spec could contain a set of reusable parameter definitions:

      "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"
        }
      }
      

      Then later in a path/operation definition, reference that parameter definition:

      "parameters": [
        {
          "$ref": "#/parameters/offset"
        }
      ]
      

      We should have an option to resolve these references so they are usable from Camel.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeremyross Jeremy Ross
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: