elixir-maru / maru

Elixir RESTful Framework
https://maru.readme.io
BSD 3-Clause "New" or "Revised" License
1.32k stars 84 forks source link

Fix Dialyzer error #115

Closed legoscia closed 5 years ago

legoscia commented 5 years ago

Adding a required parameter would make Dialyzer fail with "The created fun has no local return". This is true: Maru creates a fun that handles the case when the parameter has not been passed in, which is supposed to throw an error. Let's make Dialyzer not warn about it by declaring it as "generated code".

Fixes #100.

falood commented 5 years ago

thanks @legoscia , I'll update the depends to fix the ci before merge this

qhwa commented 4 years ago

I came across this issue with Maru@0.13.2

It works well with version 0.14.0-pre.1, which was released a long time ago. Any plan on releasing a stable version?