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

Support for enriching the Swagger API Document

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0, 3.4.4
    • rest
    • None
    • Patch Available
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: