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

--- Comment #6 from Martin Renvoize <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to