Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust availability specs to include options filter #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions spec/components/commons/query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,17 @@ components:
- confirmed
- canceled
type: string
tourOptionIds:
name: tour_option_ids
in: query
required: false
description: The option IDs
explode: false
schema:
type: array
items:
type: integer
format: int64

# Refs to common fields, as direct refs inside the query param schema breaks OpenAPI validation
schemas:
Expand Down
1 change: 1 addition & 0 deletions spec/paths/tours.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ paths:
- $ref: "../components/commons/path.yaml#/components/parameters/version"
- $ref: "../components/commons/path.yaml#/components/parameters/tourId"
- $ref: "../components/commons/query.yaml#/components/parameters/cnt-language"
- $ref: "../components/commons/query.yaml#/components/parameters/tourOptionIds"
responses:
200:
$ref: "../components/schema/tour.yaml#/components/responses/AvailabilityResponse"
Expand Down
Loading