Skip to content

Commit 209b1dd

Browse files
committed
fix: 🐛 Fixed win-backend definitions
1 parent a6d7088 commit 209b1dd

File tree

2 files changed

+43
-14
lines changed

2 files changed

+43
-14
lines changed

src/shared-definitions.yaml

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,18 +1541,18 @@ components:
15411541

15421542
WinAccommodation:
15431543
description: An accommodation object
1544-
type: object
1545-
allOff:
1546-
$ref: '#/components/schemas/Accommodation'
1547-
required:
1548-
- id
1549-
properties:
1550-
_id:
1551-
description: mongo id of the hotel
1552-
type: string
1553-
id:
1554-
description: uuid of the hotel (offer)
1555-
type: string
1544+
allOf:
1545+
- $ref: '#/components/schemas/Accommodation'
1546+
- type: object
1547+
required:
1548+
- id
1549+
properties:
1550+
_id:
1551+
description: mongo id of the hotel
1552+
type: string
1553+
id:
1554+
description: uuid of the hotel (offer)
1555+
type: string
15561556

15571557
SetPassengersResponse:
15581558
description: error response;
@@ -1939,3 +1939,32 @@ components:
19391939
minimum: 2
19401940
maximum: 12
19411941

1942+
SearchResults:
1943+
description: An object to return search results
1944+
type: object
1945+
nullable: true
1946+
required:
1947+
- offers
1948+
- accommodations
1949+
properties:
1950+
offers:
1951+
description: The indexed list of offers
1952+
type: object
1953+
additionalProperties:
1954+
$ref: '#/components/schemas/Offer'
1955+
accommodations:
1956+
description: The accommodations matching an search request
1957+
type: object
1958+
additionalProperties:
1959+
$ref: '#/components/schemas/Accommodation'
1960+
pricePlans:
1961+
description: The indexed list of price plans
1962+
type: object
1963+
additionalProperties:
1964+
$ref: '#/components/schemas/PricePlan'
1965+
passengers:
1966+
type: object
1967+
additionalProperties:
1968+
$ref: '#/components/schemas/Guest'
1969+
example:
1970+
PAX1: { 'type': 'ADT' }

src/win.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ paths:
737737
content:
738738
application/json:
739739
schema:
740-
$ref: '#/components/schemas/PricedOffer'
740+
$ref: '#/components/schemas/WinPricedOffer'
741741
400:
742742
description: Handled Error
743743
content:
@@ -782,7 +782,7 @@ paths:
782782
content:
783783
application/json:
784784
schema:
785-
$ref: '#/components/schemas/PricedOffer'
785+
$ref: '#/components/schemas/WinPricedOffer'
786786
400:
787787
description: Handled Error
788788
content:

0 commit comments

Comments
 (0)