You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error from Form.Typespecs.compile(Plaid.Auth)
** (FunctionClauseError) no function clause matching in Forma.Typespecs.map/3
The following arguments were given to Forma.Typespecs.map/3:
# 1
[{:type, 26, :map_field_assoc, [{:atom, 0, :options}, {:type, 26, :map, [{:type, 27, :map_field_assoc, [{:atom, 0, :account_ids}, {:type, 0, :list, [{:remote_type, 27, [{:atom, 0, String}, {:atom, 0, :t}, []]}]}]}]}]}]
# 2
Plaid.Auth
# 3
%{"access_token" => {:access_token, {{String, :t}, []}}}
Attempted function clauses (showing 2 out of 2):
def map([{:type, _, :map_field_exact, [{field_type, _, name}, typ]} | rest], module, acc)
def map([], _module, acc)
Would be helpful to either allow a custom rewriters prop to be added to Form.Typespecs.compile/1 as in:
defcompile(module,rewriters\\%{})domodule|>Kernel.Typespec.beam_types()|>rewrite(module,rewriters)|>Enum.map(fn{t,d}->{{module,t},d}end)|>Enum.into(%{})end...# Add rewriters arg on final pattern matchdefrewrite([],_,_module,rewriters)do...endend
The text was updated successfully, but these errors were encountered:
For the struct definition:
Getting this error from
Form.Typespecs.compile(Plaid.Auth)
Would be helpful to either allow a custom
rewriters
prop to be added toForm.Typespecs.compile/1
as in:The text was updated successfully, but these errors were encountered: