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

Dmitry Volodin resolved CAMEL-12863.
------------------------------------
    Resolution: Fixed

> Add configOptions to camel-restdsl-swagger-plugin for swagger-codegen-plugin
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-12863
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12863
>             Project: Camel
>          Issue Type: New Feature
>          Components: tooling
>    Affects Versions: 2.22.1
>            Reporter: Jochen Cordes
>            Assignee: Dmitry Volodin
>            Priority: Major
>             Fix For: 3.2.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> For dealing with "legacy" date-formats (like yyyy-MM-dd) add the ability to 
> pass configOptions to the swagger-codegen-plugin, f.e. dateLibrary. 
> <configOptions>
> ...
> <dateLibrary>legacy</dateLibrary>
> ...
>  </configOptions>
>  
> The default date-object generated by the swagger-codegen-plugin (LocalTime) 
> leads to parsing errors ("Expected BEGIN_OBJECT but was STRING"). Another 
> option would be to enhance the GsonDataFormat 
> (org.apache.camel.component.gson.GsonDataFormat), so that it also allows for 
> registering TypeAdapters 
> [https://www.javadoc.io/doc/com.google.code.gson/gson/latest/com.google.gson/com/google/gson/TypeAdapter.html]).



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

Reply via email to