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: