[Koha-bugs] [Bug 13903] Add API routes to list, create, update, delete reserves

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 24 14:12:18 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13903

--- Comment #7 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Tested that the parameter definition "optional" actually works, and they just
aren't used.

       "properties": {
         "biblionumber": {
           "description": "Biblio internal identifier",
-          "type": "integer"
+          "type": "integer",
+          "required": true
         },
         "itemnumber": {
           "description": "Item internal identifier",
-          "type": "integer"
+          "type": "integer",
+          "required": true
         },
         "branchcode": {
           "description": "Pickup location",
@@ -413,7 +415,8 @@
         "expirationdate": {
           "description": "Reserve end date",
           "type": "string",
-          "format": "date"
+          "format": "date",
+          "required": false


Using these Swagger2Validator no longer complains about missing parameters and
stuff just works !
This resolves the OPTIONAL/MANDATORY-issue.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list