From 8a3a1d5bb450bedb80970551e316b45723c0f351 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 14 Nov 2016 06:55:36 +0000 Subject: [PATCH] Bug 17620: Patron - Add date format definitions This patch adds 'format' fields to date type fields in the Patron definition. --- api/v1/swagger/definitions/patron.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/api/v1/swagger/definitions/patron.json b/api/v1/swagger/definitions/patron.json index 84f298a..4c8f587 100644 --- a/api/v1/swagger/definitions/patron.json +++ b/api/v1/swagger/definitions/patron.json @@ -121,7 +121,8 @@ }, "dateofbirth": { "type": ["string", "null"], - "description": "patron's date of birth" + "description": "patron's date of birth", + "format": "date" }, "branchcode": { "$ref": "../x-primitives.json#/branchcode" @@ -132,11 +133,13 @@ }, "dateenrolled": { "type": ["string", "null"], - "description": "date the patron was added to Koha" + "description": "date the patron was added to Koha", + "format": "date" }, "dateexpiry": { "type": ["string", "null"], - "description": "date the patron's card is set to expire" + "description": "date the patron's card is set to expire", + "format": "date" }, "gonenoaddress": { "type": ["string", "null"], @@ -148,7 +151,8 @@ }, "debarred": { "type": ["string", "null"], - "description": "until this date the patron can only check-in" + "description": "until this date the patron can only check-in", + "format": "date" }, "debarredcomment": { "type": ["string", "null"], @@ -272,7 +276,8 @@ }, "lastseen": { "type": ["string", "null"], - "description": "last time a patron has been seen (connected at the OPAC or staff interface)" + "description": "last time a patron has been seen (connected at the OPAC or staff interface)", + "format": "date" } } } -- 2.1.4