From 5789a643a85e404b388e5738343422bd982d24d3 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 10 Nov 2016 10:21:52 -0300 Subject: [PATCH] Bug 17607: Fix patron definition in Swagger This patch makes the patron swagger definition match the DB schema. To test: - Run: $ prove t/db_dependent/api/v1/swagger/definitions.t => FAIL: 'lastseen' field is not declared in the swagger definition - Apply the patch - Run: $ prove t/db_dependent/api/v1/swagger/definitions.t => SUCCESS: Tests pass! - Sigh off :-D Sponsored-by: ByWater Solutions Signed-off-by: Hector Castro All tests pass successfuly Signed-off-by: Lari Taskula Fixed a typo: seed -> seen --- api/v1/swagger/definitions/patron.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v1/swagger/definitions/patron.json b/api/v1/swagger/definitions/patron.json index a021502..84f298a 100644 --- a/api/v1/swagger/definitions/patron.json +++ b/api/v1/swagger/definitions/patron.json @@ -269,6 +269,10 @@ "updated_on": { "type": "string", "description": "time of last change could be useful for synchronization with external systems (among others)" + }, + "lastseen": { + "type": ["string", "null"], + "description": "last time a patron has been seen (connected at the OPAC or staff interface)" } } } -- 1.9.1