https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21219
Bug ID: 21219
Summary: NULL values in updated_on field break the Patrons REST
API
Change sponsored?: ---
Product: Koha
Version: 18.05
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: REST api
Assignee: [email protected]
Reporter: [email protected]
The swagger definition does not allow for updated_on to be NULL but the
database does allow this. If a patron has a null value then the REST service
call fails.
The history of this is as follows:
Bug #10459 (released in 16.05.01) - updated_on field added to borrowers table,
NULL allowed
Bug #17651 (released in 16.11) - fix swagger definition to allow for NULL
"updated_on": {
- "type": "string",
+ "type": ["string", "null"],
"description": "time of last change could be useful for synchronization
with external systems (among others)"
},
Bug #16330 (released in 18.05) - removes the null option from the definition
"updated_on": {
- "type": ["string", "null"],
+ "type": "string",
"format": "date-time",
"description": "time of last change could be useful for synchronization
with external systems (among others)"
},
You can see that the last push undid the previous bug fix.
--
You are receiving this mail because:
You are the assignee for the bug.
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/