jonasschmidt / ex_json_schema

An Elixir JSON Schema validator
MIT License
366 stars 98 forks source link

Replace Map.size with Kernel.map_size, as per deprecation warning #44

Closed kbaird closed 5 years ago

kbaird commented 5 years ago

When compiling a project that uses ex_json_schema, I saw the following warning:

warning: Map.size/1 is deprecated. Use Kernel.map_size/1 instead
Found at 4 locations:
  lib/ex_json_schema/validator.ex:99
  lib/ex_json_schema/validator.ex:101
  lib/ex_json_schema/validator.ex:106
  lib/ex_json_schema/validator.ex:108

And so made this small change accordingly.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 98.661% when pulling 703086f30e484ffef1b73421dc80dfc76c4b5180 on kbaird:ReplaceMapSizeWithKernelFun into fd808676f1ecbd52d874fb3eca180bc476d20440 on jonasschmidt:master.

woylie commented 5 years ago

This is also handled in #43

kbaird commented 5 years ago

Closing in favor of https://github.com/jonasschmidt/ex_json_schema/pull/43