[Koha-bugs] [Bug 26893] New version of JSON::Validator (D11) break our REST API routes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 11 23:00:06 CET 2020


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

--- Comment #7 from Mason James <mtj at kohaaloha.com> ---
i think the errors that we are encountering is probably caused by J::V 4.00
depreciating some functions and methods

https://metacpan.org/changes/distribution/JSON-Validator

4.00 2020-06-08T10:41:55+0900
 - JSON::Validator::schema() now holds a JSON::Validator::Schema object
   instead of Mojo::JSON::Pointer
 - Add schema classes for Draft4, Draft6 and Draft7
 - Add "duration" and "uuid" formats #210
 - Fix coercing boolean "false" #215
 - Fix not matching "null" should also be a "type" error #217
 - Deprecated JSON::Validator::joi()
 - Deprecated JSON::Validator::singleton()
 - Deprecated JSON::Validator::validate_json()
 - Deprecated JSON::Validator::version()
 - Removed JSON::Validator::generate_definitions_path()
 - Removed support for JSON::Validator::bundle({ref_key => ...})


i think the best solution would be to attempt to rewrite the JV code in koha to
not use the depreciated JV functions and methods

we will eventually have to correct this problem, so lets do it now rather than
later?

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


More information about the Koha-bugs mailing list