[ 
https://issues.apache.org/jira/browse/CAMEL-12863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066462#comment-17066462
 ] 

Dmitry Volodin commented on CAMEL-12863:
----------------------------------------

Yes, configOptions is part of the swagger-codegen-maven-plugin.

[https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen-maven-plugin]

> 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
>              Labels: help-wanted
>             Fix For: Future
>
>          Time Spent: 10m
>  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