Closed elcamlost closed 6 years ago
Hey, thanks for reporting in!
I've fixed this in JSON::Validator now: https://github.com/jhthorsen/json-validator/commit/f58f54fab14fc3e5bfe5d8cafbc185ea7263ab13
You can try it out with
cpanm https://github.com/jhthorsen/json-validator/archive/master.tar.gz
Let me know what you think.
Yeah, now error directly gives the proper message. Thanks!
Awesome! I'll make a new release later today 👍
Example full mojolicious app. Saved to app.pl file
Running app like this
Problem here that file definitions/unit.json doesn't exists. But without JSON_VALIDATOR_DEBUG env variable error is very confusing - Can't call method "server" on an undefined value at local/lib/perl5/Mojo/Server/Daemon.pm line 55
Is it ok? Shouild it be fixed? And if yes, where to fix it? Here or in JSON::Validator module?