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

karthic pv updated CAMEL-15418:
-------------------------------
    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. 

  was:The swagger document is generated based on the POJO. Need some 
override/hook mechanism to generate the swagger definition based on the custom 
dataformat. It help to enrich the swagger definition.


> Support for generating the Swagger API Document for the custom format
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-15418
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15418
>             Project: Camel
>          Issue Type: Improvement
>          Components: rest
>            Reporter: karthic pv
>            Priority: Major
>         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