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

External schema from an external schema leads to broken rest builder

    Details

      Description

      There are cases were we want to use an external schema that has also an external schema as property. This will lead to a broken buildR.

      For example, in headless-admin-content add:

      "/sites/{siteId}/site-pages/{friendlyUrlPath}":
              delete:
                  # @review
                  description:
                      Deletes the specific public page of a given site
                  parameters:
                      - in: path
                        name: siteId
                        required: true
                        schema:
                            format: int64
                            type: integer
                      - in: path
                        name: friendlyUrlPath
                        required: true
                        schema:
                            type: string
                  responses:
                      204:
                          content:
                              application/json: {}
                              application/xml: {}
                          description:
                              ""
                  tags: ["SitePage"]
              # @review
              post:
                  description:
                      Adds a public page to a specific site
                  parameters:
                      - in: path
                        name: siteId
                        required: true
                        schema:
                            format: int64
                            type: integer
                  requestBody:
                      content:
                          application/json:
                              schema:
                                  $ref: "../../headless-delivery/headless-delivery-impl/rest-openapi.yaml#SitePage"
                          application/xml:
                              schema:
                                  $ref: "../../headless-delivery/headless-delivery-impl/rest-openapi.yaml#SitePage"
                  responses:
                      200:
                          content:
                              text/html:
                                  schema:
                                      type: string
                          description:
                              ""
                  tags: ["SitePage"]
      

      Since SitePage has an external schema in Experience (Segment), an NPE is thrown

        Attachments

          Activity

            People

            Assignee:
            javier.gamarra Javier Gamarra
            Reporter:
            jurgen.kappler Jürgen Kappler
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Javier Gamarra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              29 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP98
                7.0.X
                7.1.10 DXP FP23
                7.1.10.6 SP6
                7.1.X
                7.2.10 DXP FP12
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                Master