Browse Source

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>
18.05.x
Tomás Cohen Arazi 5 years ago
committed by Jonathan Druart
parent
commit
8c489457ca
  1. 4
      api/v1/swagger/definitions/patron.json

4
api/v1/swagger/definitions/patron.json

@ -34,7 +34,7 @@
"description": "street type of patron's primary address"
},
"address": {
"type": "string",
"type": ["string", "null"],
"description": "first address line of patron's primary address"
},
"address2": {
@ -42,7 +42,7 @@
"description": "second address line of patron's primary address"
},
"city": {
"type": "string",
"type": ["string", "null"],
"description": "city or town of patron's primary address"
},
"state": {

Loading…
Cancel
Save