vic / params

Easy parameters validation/casting with Ecto.Schema, akin to Rails' strong parameters.
http://hex.pm/packages/params
Apache License 2.0
361 stars 46 forks source link

Fix Dialyzer warnings for Elixir 1.4/OTP 20 #21

Closed take-five closed 7 years ago

take-five commented 7 years ago

After running Dialyzer on OTP 20, following warnings have been emitted:

:0: Unknown type 'Elixir.Map':t/0
:0: Unknown type 'Elixir.Struct':t/0
lib/params.ex:198: Function defaults/2 will never be called

This commit fixes those warnings and also removes unused auto-generated defaults/2 function.

vic commented 7 years ago

Thank you <3 !

take-five commented 7 years ago

Could you please release a patch version with this small fix?

vic commented 7 years ago

Done, published 2.0.3, thank you again :)