You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2019/08/06 14:40:00 UTC

[jira] [Commented] (CAMEL-12863) Add configOptions to camel-restdsl-swagger-plugin for swagger-codegen-plugin

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

Claus Ibsen commented on CAMEL-12863:
-------------------------------------

Is legacy a known option to the swagger generator 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
>            Priority: Major
>             Fix For: Future
>
>
> For dealing with "legcy" 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://google.github.io/gson/apidocs/com/google/gson/TypeAdapter.html).



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)