Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4598

[OpenApi Gen] Fix "useRuntimeException" attribute in OpenApi generator tool

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 1.3.0.Final
    • Core Engine
    • None
    • False
    • False
    • Undefined
    • ---
    • ---

      In the OpenApi Codegen implementation, we leverage the OpenApi Generator tool. Their engine is missing to set the property `useRuntimeException` in the API. We need to open a upstream issue and send a PR to fix it. This will avoid this:

          @Override
          public Map<String, Object> postProcessSupportingFileData(Map<String, Object> objs) {
              // TODO: open an issue on OpenApi project, this should be added by them
              objs.put(JavaClientCodegen.USE_RUNTIME_EXCEPTION, true);
              return super.postProcessSupportingFileData(objs);
          }
      

            rhn-support-zanini Ricardo Zanini Fernandes
            rhn-support-zanini Ricardo Zanini Fernandes
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: