After I updated params in our project, I got new Dialyzer warnings:
web/controllers/queue_controller.ex:1: The inferred return type of data/2 ({'error',_} | {'ok',#{'__struct__'=>atom(), atom()=>_}}) has nothing in common with #{'__struct__'=>atom(), atom()=>_}, which is the expected return type for the callback of 'Elixir.Params.Behaviour' behaviour
The only file that uses Params.Behaviour is Params.Schema, so I changed callback spec. With this change Dialyzer warnings are gone.
After I updated
params
in our project, I got new Dialyzer warnings:The only file that uses
Params.Behaviour
isParams.Schema
, so I changed callback spec. With this change Dialyzer warnings are gone.