Bug 20144: (follow-up) Adjust /patrons endpoint
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 13 Feb 2018 18:52:45 +0000 (15:52 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2018 19:08:47 +0000 (16:08 -0300)
commit8c489457caf79f3c71eb78e1c75939fcde0fef32
tree092ec770dc4bd3d0bf1031a51e2bf57e08e23975
parentea7fa8d011afc6d2337aebb440c1bf1f4732b143
Bug 20144: (follow-up) Adjust /patrons endpoint

Fields 'address' and 'city' have been maybe nullable by this bug. This
patch makes them nullable on the API as well.

To test:
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Tests fail (randomly) when address or city are set to null by
         TestBuilder.
- Apply this patch
- Run:
 k$ prove t/db_dependent/api/v1/patrons.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/definitions/patron.json