Skip to content

Commit

Permalink
fix(vehicle): accessibility_options required if available
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Apr 25, 2023
1 parent 38104d4 commit 5c934e5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions models/modes/car-share/vehicle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ x-stoplight:

properties:
accessibility_options:
description: The accessibility options available on a given vehicle, or the accessibility options utilized for a given trip.
description: The accessibility options available on a given vehicle, or the accessibility options utilized for a given trip. Required if available.
type: array
uniqueItems: true
items:
type: string
enum:
- wheelchair_accessible

vehicle_attributes:
type: object
description: Many of these attributes come from fields in [GBFS vehicle_types](https://github.com/MobilityData/gbfs/blob/v2.3/gbfs.md#vehicle_typesjson).
Expand Down
3 changes: 1 addition & 2 deletions models/modes/delivery-robots/vehicle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ x-stoplight:

properties:
accessibility_options:
description: The accessibility options available on a given delivery robot device.
description: The accessibility options available on a given delivery robot device. Required if available.
type: object
additionalProperties: false
properties:
Expand All @@ -20,7 +20,6 @@ properties:
remote_open:
type: boolean
description: Can the device door be remotely opened to retrieve cargo upon delivery.

vehicle_attributes:
type: object
additionalProperties: false
Expand Down
3 changes: 1 addition & 2 deletions models/modes/micromobility/vehicle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ x-stoplight:
properties:
accessibility_options:
type: array
description: The accessibility options available on a given vehicle, or the accessibility options utilized for a given trip.
description: The accessibility options available on a given vehicle, or the accessibility options utilized for a given trip. Required if available.
uniqueItems: true
items:
type: string
enum:
- adaptive

vehicle_attributes:
type: object
additionalProperties: false
Expand Down
3 changes: 1 addition & 2 deletions models/modes/passenger-services/vehicle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ x-stoplight:
properties:
accessibility_options:
type: array
description: The accessibility options available on a given vehicle, or the accessibility options utilized for a given trip.
description: The accessibility options available on a given vehicle, or the accessibility options utilized for a given trip. Required if available.
uniqueItems: true
items:
type: string
enum:
- wheelchair_accessible

vehicle_attributes:
type: object
additionalProperties: false
Expand Down
1 change: 0 additions & 1 deletion models/vehicle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ required:
- vehicle_id
- vehicle_type
- propulsion_types
- accessibility_options

allOf:
- properties:
Expand Down

0 comments on commit 5c934e5

Please sign in to comment.