Jochen Cordes created CAMEL-12863:
-------------------------------------

             Summary: 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


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.3#76005)

Reply via email to