jhthorsen / json-validator

:cop: Validate data against a JSON schema
https://metacpan.org/release/JSON-Validator
56 stars 58 forks source link

Error installing version 2.19 #141

Closed ecometer closed 5 years ago

ecometer commented 5 years ago

Steps to reproduce the behavior

Trying to install JSON::Validator@2.19 to be used in Mojolicious::Plugin::Yancy

Expected behavior

Install

Actual behavior

Error:

#   Failed test 'http://127.0.0.1:38045/relative-to-the-root.json'
#   at t/id-keyword-draft4.t line 25.
# Possibly a typo in schema? Could not find "bx" in "http://example.com/b.json" (b.json#bx) at /home/paolo/.cpanm/work/1546888583.22845/JSON-Validator-2.19/blib/lib/JSON/Validator.pm line 460.
#   JSON::Validator::_resolve_ref(JSON::Validator=HASH(0x559fc43190b0), HASH(0x559fc4371b18), Mojo::URL=HASH(0x559fc435b6a8)) called at /home/paolo/.cpanm/work/1546888583.22845/JSON-Validator-2.19/blib/lib/JSON/Validator.pm line 422
#   JSON::Validator::_resolve(JSON::Validator=HASH(0x559fc43190b0), "http://127.0.0.1:38045/relative-to-the-root.json") called at /home/paolo/.cpanm/work/1546888583.22845/JSON-Validator-2.19/blib/lib/JSON/Validator.pm line 177
#   JSON::Validator::load_and_validate_schema(JSON::Validator=HASH(0x559fc43190b0), "http://127.0.0.1:38045/relative-to-the-root.json") called at t/id-keyword-draft4.t line 24
#   eval {...} called at t/id-keyword-draft4.t line 24
Can't call method "get" on an undefined value at t/id-keyword-draft4.t line 29.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 7.
jhthorsen commented 5 years ago

Hey,

Try installing the latest version: This problem was fixed in 3.01 iirc.

ecometer commented 5 years ago

Ok, it worked fine, thanks Paolo

Il giorno mar 8 gen 2019 alle ore 06:52 Jan Henning Thorsen < notifications@github.com> ha scritto:

Hey,

Try installing the latest version: This problem was fixed in 3.01 iirc.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mojolicious/json-validator/issues/141#issuecomment-452183987, or mute the thread https://github.com/notifications/unsubscribe-auth/AkkVpU0IZMXD-9hU33_yz2RvtFN4f5W3ks5vBDILgaJpZM4Z0IHG .

--

Paolo Saudin

348-7456677 paolo.saudin@ecometer.it alessia.treves@ecometer.it | www.ecometer.it Ecometer di Saudin Paolo & C. s.n.c. | Località Le Norat, 32 11010 Introd (AO) P. IVA / CF 00617910070 | ecometer@pec.it

[image: www.ecometer.it] http://www.ecometer.it/

Ai sensi del regolamento Europeo 679/2016 si precisa che le informazioni e/o gli allegati contenuti in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio Le fosse pervenuto per errore, La preghiamo di darcene notizia e ad eliminarlo senza copiarlo e senza inoltrarlo a terzi. Titolare del trattamento dei dati contenuti in questo messaggio è Ecometer di Saudin Paolo & C. s.n.c. con sede ad Introd (AO)