Closed mattias-p closed 3 years ago
Oh. That's not very nice. I've just made a new release where you can do:
use JSON::Validator::Joi qw(joi);
The reason why JSON::Validator::joi() is deprecated is because it could also take $data
which I found very clumsy.
I've got a bunch of code using JSON::Validator::joi like this:
When I run this code I get lots of deprecation warnings about this use of
joi
. The documentation at https://metacpan.org/pod/JSON::Validator clearly marks thejoi
interface as deprecated. So far, so good. However, I can't find any documentation on intended migration paths away from the deprecated interface. Also, https://metacpan.org/pod/JSON::Validator::Joi still prescribes the use of the deprecated interface.