Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-146762

Error in client module generated by REST Builder

Details

    Description

      There is a problem with the client generation in the REST Builder when there is an endpoint accepting multiple request body content types and one of them is multipart.

      The Headless Batch Engine API could be used as an example adding the config flag to create the client. I will attach the files to be replaced.

       

      Steps to reproduce:

      1. Replace the rest-openapi.yaml and rest-config.yaml files in the headless-batch-engine-impl module with the ones provided in the ticket
      2. Create the folder headless-batch-engine-client and a subfolder src
      3. Add inside the bnd.bnd and build.gradle files provided in the ticket
      4. Go to the headless-batch-engine-impl module and run `gw buildREST`
        Go to the generated headless-batch-engine-client module and run `gw deploy`

       

      Expected result: Success compilation

      Result: There are errors compiling the module

      Attachments

        1. bnd.bnd
          0.1 kB
        2. build.gradle
          0.0 kB
        3. rest-config.yaml
          0.4 kB
        4. rest-openapi.yaml
          14 kB
        5. screenshot-1.png
          screenshot-1.png
          227 kB

        Activity

          People

            brian.chan Brian Chan
            javier.dearcos Javier de Arcos Velilla
            Kiyoshi Lee Kiyoshi Lee
            Javier de Arcos Velilla Javier de Arcos Velilla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              43 weeks, 1 day ago

              Packages

                Version Package
                7.0.X
                7.1.X
                7.2.10 DXP FP17
                7.2.10.6 DXP SP6
                7.2.X
                7.3.X
                7.4.3.12 CE GA12
                7.4.13 DXP U8
                Master