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

Support for enriching the Swagger API Document

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0, 3.4.4
    • Component/s: rest
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      In Swagger Java Library, custom converter can be provided to enrich the Swagger Definition. It can be achieved by extending io.swagger.converter.ModelConverter in the custom converter then, the custom converter will be loaded by the io.swagger.converter.ModelConverters using the Service Loading Mechanism.
      Note: The loaded custom converters are available only in ModelConverters.getInstance().

      In camel-swagger-java, the above customisation is not possible because org.apache.camel.swagger.RestModelConverters is derived from io.swagger.converter.ModelConverters and invokes the base class methods. So, the org.apache.camel.swagger.RestModelConverters is unaware of the custom converter and the enrichment is not possible. 

        Attachments

        1. fix.patch
          2 kB
          karthic pv

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              karthicpv karthic pv
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: