[Koha-bugs] [Bug 30194] Adapt Koha for JSON::Validator at 5.x

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 4 13:18:54 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30194

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 131374
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131374&action=edit
Bug 30194: Adapt V1.pm to the latest JSON::Validator

This patch acknowledges a refactoring that took place within
JSON::Validator, the OpenAPIv2 schema validator and the
Mojolicious::Plugin::OpenAPI plugin.

To test:
0. Edit /etc/apt/sources.list.d/koha.list
   - Duplicate the only present line, replacing 'dev' for 'exp'
   Run:
   $ apt update ; apt dist-upgrade
1. Apply this patch
2. Restart all:
   $ restart_all ; tail -f /var/log/koha/kohadev/*.log
=> FAIL: It fails
3. Grab a bundled version of the API spec from a working Koha
4. (temporarily) tweak V1.pm to point to this file (swagger.json)
5. Repeat 2
=> SUCCESS: Koha works with latests Mojolicious and JSON::Validator

Work is being done on bug 30193 to come up with a reorganized spec that
conforms better to the standard and thus doesn't require step 4.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list