@@ -, +, @@ currently defined objects --- api/v1/definitions/hold.json | 14 +++++--------- api/v1/definitions/patron.json | 21 +++++++-------------- 2 files changed, 12 insertions(+), 23 deletions(-) --- a/api/v1/definitions/hold.json +++ a/api/v1/definitions/hold.json @@ -2,22 +2,19 @@ "type": "object", "properties": { "reserve_id": { - "description": "Internal hold identifier" + "$ref": "../x-primitives.json#/reserve_id" }, "borrowernumber": { - "type": "string", - "description": "internally assigned user identifier" + "$ref": "../x-primitives.json#/borrowernumber" }, "reservedate": { "description": "the date the hold was placed" }, "biblionumber": { - "type": "string", - "description": "internally assigned biblio identifier" + "$ref": "../x-primitives.json#/biblionumber" }, "branchcode": { - "type": ["string", "null"], - "description": "internally assigned branch identifier" + "$ref": "../x-primitives.json#/branchcode" }, "notificationdate": { "description": "currently unused" @@ -41,8 +38,7 @@ "description": "date and time the hold was last updated" }, "itemnumber": { - "type": ["string", "null"], - "description": "internally assigned item identifier" + "$ref": "../x-primitives.json#/itemnumber" }, "waitingdate": { "description": "the date the item was marked as waiting for the patron at the library" --- a/api/v1/definitions/patron.json +++ a/api/v1/definitions/patron.json @@ -2,20 +2,16 @@ "type": "object", "properties": { "borrowernumber": { - "type": "string", - "description": "internally assigned user identifier" + "$ref": "../x-primitives.json#/borrowernumber" }, "cardnumber": { - "type": ["string", "null"], - "description": "library assigned user identifier" + "$ref": "../x-primitives.json#/cardnumber" }, "surname": { - "type": "string", - "description": "patron's last name" + "$ref": "../x-primitives.json#/surname" }, "firstname": { - "type": ["string", "null"], - "description": "patron's first name" + "$ref": "../x-primitives.json#/firstname" }, "title": { "type": ["string", "null"], @@ -62,12 +58,10 @@ "description": "country of patron's primary address" }, "email": { - "type": ["string", "null"], - "description": "primary email address for patron's primary address" + "$ref": "../x-primitives.json#/email" }, "phone": { - "type": ["string", "null"], - "description": "primary phone number for patron's primary address" + "$ref": "../x-primitives.json#/phone" }, "mobile": { "type": ["string", "null"], @@ -130,8 +124,7 @@ "description": "patron's date of birth" }, "branchcode": { - "type": "string", - "description": "code of patron's home branch" + "$ref": "../x-primitives.json#/branchcode" }, "categorycode": { "type": "string", --