Bug 17032: Make sure Swagger object definition is up-to-date with Koha-object
authorLari Taskula <larit@student.uef.fi>
Wed, 3 Aug 2016 11:55:08 +0000 (14:55 +0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 12:57:52 +0000 (12:57 +0000)
commit07cfcc77c580e8a16a9f12982525c5b1f6ff8c38
tree6913cb80935b90af60f49a44bdaa1f6a052c719d
parent0a92669c229a04dc50b17569ae5d0c132a983fe2
Bug 17032: Make sure Swagger object definition is up-to-date with Koha-object

If a definition in api/v1/definitions/*.json has a corresponding Koha-object by
filename, compare properties of the definition and columns of the Koha-object
and ensure that all columns are defined inside properties of the definition.

To test:
1. Run t/db_dependent/api/v1/swagger/definitions.t
2. See that all of the tests pass. (If not, file a bug report to fix missing
   properties in the Swagger definition.)
3. Remove a property from api/v1/swagger/definitions/patron.json
4. Repeat step 1
5. See that test fails and lets you know that the property you just removed
   is missing from the definition.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/api/v1/swagger/definitions.t [new file with mode: 0644]