[Koha-bugs] [Bug 24700] Improve Mojo startup speed for REST APIs
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 20 16:16:54 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24700
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #99319|0 |1
is obsolete| |
--- Comment #3 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 99320
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99320&action=edit
Bug 24700: Avoid validating REST API spec multiple times
This patch changes the spec loading so that it is fully loaded and merged with
any plugin routes before validation. The individual parts are separately
validated only if the resulting complete spec is invalid. Note: the OpenAPI
plugin validates the spec given to it, so normally no manual validation is
necessary.
Test plan:
1. prove -v t/db_dependent/Koha/REST/*
2. prove -v t/db_dependent/api/v1/*
Sponsored-by: The National Library of Finland
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list