Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12863

Add configOptions to camel-restdsl-swagger-plugin for swagger-codegen-plugin

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.22.1
    • Fix Version/s: 3.2.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmvolod Dmitry Volodin
                Reporter:
                jcordes Jochen Cordes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m