From: Jonathan Druart Date: Thu, 17 Nov 2016 15:12:01 +0000 (+0000) Subject: Bug 17651: borrowers.updated_on can be null - swagger def X-Git-Tag: v16.11.00~54 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=68173511bf7004eac8c7ecd34bfcdc79dd215ecc;p=koha-ffzg.git Bug 17651: borrowers.updated_on can be null - swagger def The swagger file does not consider borrowers.updated_on as a nullable value, it should Test plan: 0/ Do not apply this patch 1/ update borrowers set updated_on=null; 2/ prove t/db_dependent/api/v1/patrons.t => Fail 3/ Apply this patch 4/ prove t/db_dependent/api/v1/patrons.t => green Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- diff --git a/api/v1/swagger/definitions/patron.json b/api/v1/swagger/definitions/patron.json index 84f298ae13..c93c4baeb5 100644 --- a/api/v1/swagger/definitions/patron.json +++ b/api/v1/swagger/definitions/patron.json @@ -267,7 +267,7 @@ "description": "produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'" }, "updated_on": { - "type": "string", + "type": ["string", "null"], "description": "time of last change could be useful for synchronization with external systems (among others)" }, "lastseen": {