Bug 21786: (QA follow-up) library_id can be null
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 27 Dec 2018 14:40:12 +0000 (11:40 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 8 Jan 2019 15:50:51 +0000 (15:50 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

api/v1/swagger/definitions/account_line.json
api/v1/swagger/definitions/patron_account_credit.json

index 0d84cb2..ac81f9d 100644 (file)
       "description": "Internal patron identifier for the staff member that introduced the account line"
     },
     "library_id": {
-      "type": "string",
+      "type": [
+        "string",
+        "null"
+      ],
       "description": "Internal identifier for the library in which the transaction took place"
     }
   }
index be33366..1bde9c3 100644 (file)
@@ -11,7 +11,7 @@
       "description": "Credit amount"
     },
     "library_id": {
-      "type": "string",
+      "type": [ "string", "null" ],
       "description": "Internal identifier for the library in which the transaction took place"
     },
     "account_lines_ids": {