Bugzilla – Attachment 57468 Details for
Bug 17620
Fix format of date/data-times in Swagger definition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17620: Patron - Add date format definitions
Bug-17620-Patron---Add-date-format-definitions.patch (text/plain), 2.03 KB, created by
Martin Renvoize (ashimema)
on 2016-11-14 06:58:45 UTC
(
hide
)
Description:
Bug 17620: Patron - Add date format definitions
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2016-11-14 06:58:45 UTC
Size:
2.03 KB
patch
obsolete
>From 8a3a1d5bb450bedb80970551e316b45723c0f351 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17620
: 57468