Skip to content

Commit

Permalink
Resolve dialyzer missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
APB9785 committed Jan 23, 2024
1 parent ec4addd commit bd00a24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/beacon/types/json_array_map.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ defmodule Beacon.Types.JsonArrayMap do

use Ecto.Type

@typedoc """
List of maps
"""
@type t :: [map()]

def type, do: {:array, :map}

def cast(term) when is_map(term), do: {:ok, [term]}
Expand Down

0 comments on commit bd00a24

Please sign in to comment.