Skip to content

Commit

Permalink
drop carriage_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Whoops authored and bklebe committed Sep 1, 2023
1 parent 725c146 commit b3cf3db
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions apps/api_web/lib/api_web/controllers/vehicle_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ defmodule ApiWeb.VehicleController do
%{
"label" => "some-carriage",
"occupancy_status" => "MANY_SEATS_AVAILABLE",
"occupancy_percentage" => 80,
"carriage_sequence" => 1
"occupancy_percentage" => 80
}
]
)
Expand Down
4 changes: 0 additions & 4 deletions apps/api_web/lib/api_web/swagger_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ defmodule ApiWeb.SwaggerHelpers do
type: :string,
description: "Carriage-specific label, used as an identifier"
},
carriage_sequence: %Schema{
type: :integer,
description: "Provides a reliable order"
},
occupancy_status: %Schema{
type: :string,
description: occupancy_status_description(),
Expand Down
1 change: 0 additions & 1 deletion apps/api_web/lib/api_web/views/vehicle_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ defmodule ApiWeb.VehicleView do
defp encode_carriage(carriage) do
%{
label: carriage.label,
carriage_sequence: carriage.carriage_sequence,
occupancy_status: occupancy_status(carriage, nil),
occupancy_percentage: carriage.occupancy_percentage
}
Expand Down

0 comments on commit b3cf3db

Please sign in to comment.