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

Rest builder does not generate DTOs in the client module

    Details

      Description

      When the openAPI has references to external specification and this specification uses in the component definitions the keyword allOf, the restBuilder does not generate all the necessary DTOs in the client module.

      For example, this occur with the following code:

       

      ...
      responses:
          200:
              content:
                  application/json:
                      schema:
                          items:
                              $ref: "../../headless-delivery/headless-delivery-impl/rest-openapi.yaml#StructuredContent"
                          type: array
                  application/xml:
                      schema:
                          items:
                              $ref: "../../headless-delivery/headless-delivery-impl/rest-openapi.yaml#StructuredContent"
                          type: array
              description:
                  ""
      ...
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              javier.dearcos Javier de Arcos Velilla
              Reporter:
              luismiguel.barco Luis Miguel Barcos
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Javier de Arcos Velilla
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 5 days ago

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master