Skip to content

Commit 59b7b2a

Browse files
authored
chore: update flights specs (#121)
1 parent 8c581fa commit 59b7b2a

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

specs/xap-flight-v1.specs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ paths:
4545
If this information is not provided, the currency corresponding for that partners default will be selected.
4646
schema:
4747
type: string
48-
example: en_US
48+
example: USD
4949
- name: Key
5050
in: header
5151
description: |-

specs/xap-flight-v3.specs.yaml

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,11 @@ paths:
260260
- name: childrenAges
261261
in: query
262262
description: Comma-separated list of the ages of all child travelers (ages 2 - 17).
263+
explode: false
263264
schema:
264-
type: string
265+
type: array
266+
items:
267+
type: integer
265268
example: 4,5
266269
- name: infantInLap
267270
in: query
@@ -328,6 +331,7 @@ paths:
328331
description: Date, in ISO format [YYYY-MM-DD], on which customer wants to depart.
329332
schema:
330333
type: string
334+
format: date
331335
- name: segment2.departureStartTime
332336
in: query
333337
description: Lower limit of desired departure time window, expressed in the local time of the departure location, in standard ISO format.
@@ -353,6 +357,7 @@ paths:
353357
description: Date, in ISO format [YYYY-MM-DD], on which customer wants to depart.
354358
schema:
355359
type: string
360+
format: date
356361
- name: segment3.departureStartTime
357362
in: query
358363
description: Lower limit of desired departure time window, expressed in the local time of the departure location, in standard ISO format.
@@ -378,6 +383,7 @@ paths:
378383
description: Date, in ISO format [YYYY-MM-DD], on which customer wants to depart.
379384
schema:
380385
type: string
386+
format: date
381387
- name: segment4.departureStartTime
382388
in: query
383389
description: Lower limit of desired departure time window, expressed in the local time of the departure location, in standard ISO format.
@@ -403,6 +409,7 @@ paths:
403409
description: Date, in ISO format [YYYY-MM-DD], on which customer wants to depart.
404410
schema:
405411
type: string
412+
format: date
406413
- name: segment5.departureStartTime
407414
in: query
408415
description: Lower limit of desired departure time window, expressed in the local time of the departure location, in standard ISO format.
@@ -428,6 +435,7 @@ paths:
428435
description: Date, in ISO format [YYYY-MM-DD], on which customer wants to depart.
429436
schema:
430437
type: string
438+
format: date
431439
- name: segment6.departureStartTime
432440
in: query
433441
description: Lower limit of desired departure time window, expressed in the local time of the departure location, in standard ISO format.
@@ -451,6 +459,11 @@ paths:
451459
Options can be: economy | first | business | premiumeconomy
452460
schema:
453461
type: string
462+
enum:
463+
- economy
464+
- first
465+
- business
466+
- premiumeconomy
454467
example: economy
455468
- name: numberOfStops
456469
in: query
@@ -480,14 +493,20 @@ paths:
480493
- name: selectedCarriers
481494
in: query
482495
description: Adding comma-separated list of IATA or Expedia airline codes will limit the search results to include flight offers only with the selected carriers.
496+
explode: false
483497
schema:
484-
type: string
498+
type: array
499+
items:
500+
type: string
485501
example: AS
486502
- name: accountCodes
487503
in: query
488504
description: AlphaNumeric characters. Different codes separated by comma
505+
explode: false
489506
schema:
490-
type: string
507+
type: array
508+
items:
509+
type: string
491510
example: AXP01
492511
- name: agent
493512
in: query
@@ -507,8 +526,17 @@ paths:
507526
ABF (Baggage Fee API)
508527
ASM (Seat Map API)
509528
WPS (Web Package Search)
529+
explode: false
510530
schema:
511-
type: string
531+
type: array
532+
items:
533+
type: string
534+
enum:
535+
- WD
536+
- AD
537+
- ABF
538+
- ASM
539+
- WPS
512540
example: WD
513541
- name: refundable
514542
in: query
@@ -542,6 +570,12 @@ paths:
542570
Possible values are: segment1 | segment2 | segment3 | segment4 | segment5
543571
schema:
544572
type: string
573+
enum:
574+
- segment1
575+
- segment2
576+
- segment3
577+
- segment4
578+
- segment5
545579
example: segment1
546580
- name: selectedOffer
547581
in: query
@@ -1462,6 +1496,7 @@ paths:
14621496
description: Date, in ISO format [YYYY-MM-DD], on which customer wants to depart.
14631497
schema:
14641498
type: string
1499+
format: date
14651500
- name: includeSegmentDetails
14661501
in: query
14671502
description: |-
@@ -1882,6 +1917,9 @@ paths:
18821917
outbound
18831918
schema:
18841919
type: string
1920+
enum:
1921+
- inbound
1922+
- outbound
18851923
- name: includeSegmentDetails
18861924
in: query
18871925
description: If the user wants to know the segment details of the offer then they can send this param as true and will get the segment and leg level details in the response. By default this will be set as false.
@@ -2656,7 +2694,6 @@ components:
26562694
required:
26572695
- International
26582696
- Links
2659-
- offerToken
26602697
- OfferPrice
26612698
- Refundable
26622699
- SegmentIds

0 commit comments

Comments
 (0)