Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Interactive Elixir (1.9.0) - press Ctrl+C to exit (type h() ENTER for help)
With elixir 1.9 comes lot of deprecations.
One of them is : warning: Map.take/2 with an Enumerable of keys that is not a list is deprecated. Use a list of keys instead.
The consequence is the follow :
in ex_json_schema/lib/ex_json_schema/validator/properties.ex
line 73: Map.take(properties, unvalidated)
unvalidated is a MapSet that is now deprecated
one solution could be to do : Map.take(properties, MapSet.to_list(unvalidated))
Other thing,
in ex_json_schema/lib/ex_json_schema/validator.ex
line 182, 189, 197, 204: Map.size is deprecated
It should to be replaced by map_size(Kernel.map_size)
The consequence of this deprecation. My log is filled with bunch of warning
I tried do clone the project, fix the issue, but when I try to test it, I have :
Hi,
With elixir 1.9 comes lot of deprecations.
One of them is :
warning: Map.take/2 with an Enumerable of keys that is not a list is deprecated. Use a list of keys instead.
The consequence is the follow : in
ex_json_schema/lib/ex_json_schema/validator/properties.ex
line 73:Map.take(properties, unvalidated)
unvalidated
is a MapSet that is now deprecatedone solution could be to do :
Map.take(properties, MapSet.to_list(unvalidated))
Other thing, in
ex_json_schema/lib/ex_json_schema/validator.ex
line 182, 189, 197, 204:Map.size
is deprecated It should to be replaced bymap_size
(Kernel.map_size)
The consequence of this deprecation. My log is filled with bunch of
warning
I tried do clone the project, fix the issue, but when I try to test it, I have :
Sorry, i don't have more time do spend on this issue.
git diff :