Skip to content

Commit

Permalink
fix: missing value_to_json in RouteDirections
Browse files Browse the repository at this point in the history
These functions need to be explicitly defined for all keys that are not
part of `children`.
  • Loading branch information
digitalcora committed Jun 7, 2024
1 parent 1256070 commit 142300a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/config/v2/departures/filters/route_directions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ defmodule ScreensConfig.V2.Departures.Filters.RouteDirections do

defp value_from_json("action", "include"), do: :include
defp value_from_json("action", "exclude"), do: :exclude

defp value_from_json(_, value), do: value
defp value_to_json(_, value), do: value
end

0 comments on commit 142300a

Please sign in to comment.