Wappler won't recognize values from 4rd level of array

Wappler Version : 5.1.1
Operating System : Windows 10 x64
Server Model: NodeJS
Database Type: PostgreSQL
Hosting Type: Docker

Expected behavior

Can’t expand array from 4rd level of array from API data

Actual behavior

Data binding is empty

How to reproduce

  1. Create API Action for URL: https://www.ryanair.com/api/booking/v4/en-ie/availability?ADT=1&CHD=0&DateIn=2022-11-26&DateOut=2022-11-12&Destination=BAR&Disc=0&INF=0&Origin=RIX&TEEN=0&promoCode=&IncludeConnectingFlights=false&FlexDaysBeforeOut=1&FlexDaysOut=1&FlexDaysBeforeIn=1&FlexDaysIn=1&DestinationIsMac=true&RoundTrip=true&ToUs=AGREED and Define API Schema
  2. Expand api
  3. Expand data
  4. Expand trips
  5. Expand dates
    At this moment Wappler can’t expand trips array but there is data in it

@Teodor @George Sorry for pinging you but can you confirm that there is currently limitation or bug in Wappler so that you cannot extend array in UI if it is on some level bellow?

That’s because this specific api URL returns empty flights[] array in its response. Instead of using fetch schema you can just edit the response and leave only the entry having data in the flights[] then click the process button:

{
  "termsOfUse": "https://www.ryanair.com/ie/en/corporate/terms-of-use=AGREED",
  "currency": "EUR",
  "currPrecision": 2,
  "routeGroup": "",
  "tripType": "OTHER",
  "upgradeType": "PLUS",
  "trips": [
    {
      "origin": "RIX",
      "originName": "Riga",
      "destination": "BAR",
      "destinationName": "BAR",
      "routeGroup": "",
      "tripType": "OTHER",
      "upgradeType": "PLUS",
      "dates": [
        {
          "dateOut": "2022-11-12T00:00:00.000",
          "flights": [
            {
              "faresLeft": 1,
              "flightKey": "FR~3194~ ~~RIX~11/12/2022 18:20~BCN~11/12/2022 20:55~~",
              "infantsLeft": 18,
              "regularFare": {
                "fareKey": "4VA5O2AP6JWRZKXGNB2GROKUQ6MAF3TW5FTTWQP4AV5L2YJE2LRIBBTKM5FAPOHTQTYCFAX4Y4U5AVP4C5HK3WMGCQYZ65MB2ACO7UOHNQUXRLL4OFR5CFIKNEHAWO2PFMKBZXY24KIP2BVBV2VNC5TKEA624HCVV4QZOA4KHA4X2MJ6OEQXMRKWH4DLP7BC4D5LJ4RPHULAPZ7LTV6VK2NBBL5NYXHOJOICPPA",
                "fareClass": "W",
                "fares": [
                  {
                    "type": "ADT",
                    "amount": 45.99,
                    "count": 1,
                    "hasDiscount": false,
                    "publishedFare": 45.99,
                    "discountInPercent": 0,
                    "hasPromoDiscount": false,
                    "discountAmount": 0.0,
                    "hasBogof": false
                  }
                ]
              },
              "operatedBy": "",
              "segments": [
                {
                  "segmentNr": 0,
                  "origin": "RIX",
                  "destination": "BCN",
                  "flightNumber": "FR 3194",
                  "time": [
                    "2022-11-12T18:20:00.000",
                    "2022-11-12T20:55:00.000"
                  ],
                  "timeUTC": [
                    "2022-11-12T16:20:00.000Z",
                    "2022-11-12T19:55:00.000Z"
                  ],
                  "duration": "03:35"
                }
              ],
              "flightNumber": "FR 3194",
              "time": ["2022-11-12T18:20:00.000", "2022-11-12T20:55:00.000"],
              "timeUTC": [
                "2022-11-12T16:20:00.000Z",
                "2022-11-12T19:55:00.000Z"
              ],
              "duration": "03:35"
            }
          ]
        },
        { "dateOut": "2022-11-13T00:00:00.000", "flights": [] }
      ]
    },
    {
      "origin": "BAR",
      "originName": "BAR",
      "destination": "RIX",
      "destinationName": "Riga",
      "routeGroup": "",
      "tripType": "OTHER",
      "upgradeType": "PLUS",
      "dates": [
        { "dateOut": "2022-11-25T00:00:00.000", "flights": [] },
        {
          "dateOut": "2022-11-26T00:00:00.000",
          "flights": [
            {
              "faresLeft": -1,
              "flightKey": "FR~3193~ ~~BCN~11/26/2022 13:00~RIX~11/26/2022 17:40~~",
              "infantsLeft": 18,
              "regularFare": {
                "fareKey": "PGVNIDEJTPVRJI2KUPZBAX5TMNTCJWVGTPYCVLWA3P5HHJX74MHQJKBYIUJIYGA6HJG3AAIRARG55QEUW3TSM4CZWIQNBPELBLH6LMMIX6PYXTKCK54XSAT6AKKZCKSBJ2CO32MB4XRAXTDZWBHHARQTO2AOTG6Q5SLHZFSNHNYQ4IAXTIXCAN6FV4GKS7AZYFFNRJ3CJ4TPC",
                "fareClass": "H",
                "fares": [
                  {
                    "type": "ADT",
                    "amount": 61.99,
                    "count": 1,
                    "hasDiscount": false,
                    "publishedFare": 61.99,
                    "discountInPercent": 0,
                    "hasPromoDiscount": false,
                    "discountAmount": 0.0,
                    "hasBogof": false
                  }
                ]
              },
              "operatedBy": "",
              "segments": [
                {
                  "segmentNr": 0,
                  "origin": "BCN",
                  "destination": "RIX",
                  "flightNumber": "FR 3193",
                  "time": [
                    "2022-11-26T13:00:00.000",
                    "2022-11-26T17:40:00.000"
                  ],
                  "timeUTC": [
                    "2022-11-26T12:00:00.000Z",
                    "2022-11-26T15:40:00.000Z"
                  ],
                  "duration": "03:40"
                }
              ],
              "flightNumber": "FR 3193",
              "time": ["2022-11-26T13:00:00.000", "2022-11-26T17:40:00.000"],
              "timeUTC": [
                "2022-11-26T12:00:00.000Z",
                "2022-11-26T15:40:00.000Z"
              ],
              "duration": "03:40"
            }
          ]
        }      ]
    }
  ],
  "serverTimeUTC": "2022-09-28T06:46:56.324Z"
}

And this will result in properly fetched schema:

1 Like

Thank you for the work around.