]> git.koha-community.org Git - koha.git/commit
Bug 17927: Fix /holds and /patrons data types
authorLari Taskula <larit@student.uef.fi>
Tue, 16 Aug 2016 10:37:29 +0000 (13:37 +0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 7 Feb 2017 17:55:43 +0000 (17:55 +0000)
commit9d805b5b5f6711bc6b5efcb846756c6763dabc07
treea692ea7307b99270fa4eae2099362fdeb547fb75
parent185256deba961c2595ce934afbb910cf3ad952e0
Bug 17927: Fix /holds and /patrons data types

This patch changes current Swagger definitions for patrons and holds to have
data types corresponding to column data types in their database tables.

To test:
1. GET http://yourlibrary/api/v1/patrons/YYY where YYY is existing borrowernumber
2. Observe that numbers / integers are in string data type.
3. Apply this patch
4. Repeat step 1.
5. Observe that numbers / integers are now actually numbers / integers.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
api/v1/swagger/definitions/hold.json
api/v1/swagger/definitions/patron.json
api/v1/swagger/x-primitives.json