Skip to content

Commit

Permalink
feat: Add required fields to TripSchedule and StopTime schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Aug 16, 2024
1 parent 1573b2f commit e55105a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2138,6 +2138,11 @@ components:
status:
$ref: '#/components/schemas/TripStatus'

required:
- tripId
- schedule
- status

TripSchedule:
type: object
properties:
Expand All @@ -2154,6 +2159,11 @@ components:
$ref: '#/components/schemas/StopTime'
timeZone:
type: string
required:
- stopTimes
- timeZone
- nextTripId
- previousTripId

StopTime:
type: object
Expand Down

0 comments on commit e55105a

Please sign in to comment.