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

Claus Ibsen resolved CAMEL-15418.
---------------------------------
    Fix Version/s: 3.4.4
         Assignee: Claus Ibsen
       Resolution: Fixed

Thanks for reporting and the patch.

> Support for enriching the Swagger API Document
> ----------------------------------------------
>
>                 Key: CAMEL-15418
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15418
>             Project: Camel
>          Issue Type: Improvement
>          Components: rest
>            Reporter: karthic pv
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.5.0, 3.4.4
>
>         Attachments: fix.patch
>
>
> 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. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to