[Koha-bugs] [Bug 17607] Fix patron definition in Swagger

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 11 08:27:16 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17607

--- Comment #6 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
QA Remark: We should probably be moving towards stricter validation application
wide, and this may be a good one to start with.

datelastseen looks like a date for me ;) So we should probably return it in an
internationally recognised format. Swagger allows for this with data type
format modifiers:
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types

{ type: string, format: date-time } or { type: string, format: date } should
suffice depending upon whether this is a date-time or just a short date.

What do we think?  API consumers like explicit specification and consistency
for this sort of thing ;)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list