https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30194
--- Comment #38 from Tomás Cohen Arazi <[email protected]> --- Created attachment 132070 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132070&action=edit Bug 30194: Adapt Koha to the latest JSON::Validator version This patch makes V1.pm and PluginRoutes.pm work with the JSON::Validator breaking changes introduced after v4. JSON::Validator got stricter, and it seems there's some bug in how it resolves references, so I propose we bundle the YAML spec into a single file using a gulp task. This will save load time too, so has its advantages too. To test: 1. Edit /etc/apt/sources.list.d/koha.list 2. Duplicate the existing line below, replacing 'dev' for 'exp' 3. Upgrade the packages $ apt update ; apt dist-upgrade -y 4. Run: $ kshell k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t \ t/db_dependent/api/v1 => SUCCESS: Tests pass! 5. Restart plack and check the logs: $ koha-plack --restart kohadev ; tail -f /var/log/koha/kohadev/*.log => SUCCESS: Nothing seems broken, things work 6. Point your browser to http://localhost:8081/api/v1/ => SUCCESS: The API is loaded 7. Sign off :-D Signed-off-by: Martin Renvoize <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
