Koha-clms/Koha/REST
Ere Maijala 70109d4f94
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@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-27 11:53:44 +00:00
..
Plugin Bug 24700: Avoid validating REST API spec multiple times 2020-03-27 11:53:44 +00:00
V1 Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
V1.pm Bug 24700: Avoid validating REST API spec multiple times 2020-03-27 11:53:44 +00:00